Skip to content

Commit 50ffae1

Browse files
committed
Fix draft version numbers in migration
1 parent a0f6367 commit 50ffae1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/migrations/0004_app_data_from_app.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def create_app_data_from_app(apps, schema_editor):
104104
app_uuid=app.uuid, data=app_data, is_draft=False
105105
)
106106
AppData.objects.create(
107-
app_uuid=app.uuid, data=app_data, is_draft=True
107+
app_uuid=app.uuid, data=app_data, is_draft=True, version=1 if app.is_published else 0
108108
)
109109
except Exception as e:
110110
print(

0 commit comments

Comments
 (0)