From eafcc4d5841846df9d6e50c9a7b936c4388c34ff Mon Sep 17 00:00:00 2001 From: "robinwilliam.hundt" <robinwilliam.hundt@stud.uni-goettingen.de> Date: Tue, 2 Jul 2019 15:47:30 +0200 Subject: [PATCH] Fixed wrong import in models/user_account --- core/models/user_account.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/models/user_account.py b/core/models/user_account.py index 3659f395..c2e11d96 100644 --- a/core/models/user_account.py +++ b/core/models/user_account.py @@ -6,7 +6,7 @@ from django.contrib.auth.models import AbstractUser, UserManager from django.db import models from django.db.models import (Case, Count, IntegerField, Q, Value, When) -from factory.django import get_model +from django.apps import apps log = logging.getLogger(__name__) config = constance.config @@ -27,7 +27,7 @@ class TutorReviewerManager(UserManager): then=Value(1))), output_field=IntegerField()) - submission_subscription_model = get_model('core', 'SubmissionSubscription') # noqa + submission_subscription_model = apps.get_model('core', 'SubmissionSubscription') # noqa return self.get_queryset() \ .annotate(feedback_created=_get_counter( -- GitLab