Fix postgresql organization creation id error after the first migration
This commit is contained in:
committed by
Roberto Rosario
parent
ab69031662
commit
fba20b0a91
@@ -8,7 +8,7 @@ def default_data(apps, schema_editor):
|
|||||||
# We can't import the Organization model directly as it may be a newer
|
# We can't import the Organization model directly as it may be a newer
|
||||||
# version than this migration expects. We use the historical version.
|
# version than this migration expects. We use the historical version.
|
||||||
Organization = apps.get_model("organizations", "Organization")
|
Organization = apps.get_model("organizations", "Organization")
|
||||||
default_organization = Organization(id=1, label='Default')
|
default_organization = Organization(label='Default')
|
||||||
default_organization.save()
|
default_organization.save()
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user