From 0b126a5bf8a62ae8725d764381935a9503775cdc Mon Sep 17 00:00:00 2001 From: Marc Aymerich Date: Thu, 28 Apr 2016 10:41:22 +0000 Subject: [PATCH] DJ1.9 compat field.related --- orchestra/contrib/accounts/management/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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