Fix postgresql organization creation id error after the first migration

This commit is contained in:
Baptiste GAILLET
2016-05-19 16:07:09 +02:00
committed by Roberto Rosario
parent ab69031662
commit fba20b0a91

View File

@@ -8,7 +8,7 @@ def default_data(apps, schema_editor):
# We can't import the Organization model directly as it may be a newer
# version than this migration expects. We use the historical version.
Organization = apps.get_model("organizations", "Organization")
default_organization = Organization(id=1, label='Default')
default_organization = Organization(label='Default')
default_organization.save()