Skip to content

Commit

Permalink
fix boolean True condition in data migration
Browse files Browse the repository at this point in the history
Signed-off-by: David Wallace <david.wallace@tu-darmstadt.de>
  • Loading branch information
MyPyDavid committed Feb 13, 2024
1 parent 289e777 commit a9de0b1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def run_data_migration(apps, schema_editor):
Option = apps.get_model('options', 'Option')

for option in Option.objects.all():
option.additional_input_string = 'text' if option.additional_input is True else ''
option.additional_input_string = 'text' if option.additional_input else ''
option.save()


Expand Down

0 comments on commit a9de0b1

Please sign in to comment.