diff --git a/orchestra/contrib/accounts/management/__init__.py b/orchestra/contrib/accounts/management/__init__.py index c67e98e4..d00cd3ee 100644 --- a/orchestra/contrib/accounts/management/__init__.py +++ b/orchestra/contrib/accounts/management/__init__.py @@ -19,7 +19,7 @@ def create_initial_superuser(**kwargs): ) from ..models import Account try: - Account.systemusers.related.model.objects.filter(account_id=1).exists() + Account.systemusers.field.related.model.objects.filter(account_id=1).exists() except FieldError: # avoid creating a systemuser when systemuser table is not ready Account.save = models.Model.save