Skip to content

Commit

Permalink
Fix draft version numbers in migration
Browse files Browse the repository at this point in the history
  • Loading branch information
ajhai committed Sep 9, 2023
1 parent a0f6367 commit 50ffae1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/migrations/0004_app_data_from_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def create_app_data_from_app(apps, schema_editor):
app_uuid=app.uuid, data=app_data, is_draft=False
)
AppData.objects.create(
app_uuid=app.uuid, data=app_data, is_draft=True
app_uuid=app.uuid, data=app_data, is_draft=True, version=1 if app.is_published else 0
)
except Exception as e:
print(
Expand Down

0 comments on commit 50ffae1

Please sign in to comment.