Skip to content
Snippets Groups Projects
Commit eafcc4d5 authored by robinwilliam.hundt's avatar robinwilliam.hundt Committed by Dominik Seeger
Browse files

Fixed wrong import in models/user_account

parent 696de917
No related branches found
No related tags found
1 merge request!165Resolve "Introducing a labelling system for tutors to mark certain submission"
Pipeline #100748 failed
...@@ -6,7 +6,7 @@ from django.contrib.auth.models import AbstractUser, UserManager ...@@ -6,7 +6,7 @@ from django.contrib.auth.models import AbstractUser, UserManager
from django.db import models from django.db import models
from django.db.models import (Case, Count, IntegerField, Q, from django.db.models import (Case, Count, IntegerField, Q,
Value, When) Value, When)
from factory.django import get_model from django.apps import apps
log = logging.getLogger(__name__) log = logging.getLogger(__name__)
config = constance.config config = constance.config
...@@ -27,7 +27,7 @@ class TutorReviewerManager(UserManager): ...@@ -27,7 +27,7 @@ class TutorReviewerManager(UserManager):
then=Value(1))), then=Value(1))),
output_field=IntegerField()) output_field=IntegerField())
submission_subscription_model = get_model('core', 'SubmissionSubscription') # noqa submission_subscription_model = apps.get_model('core', 'SubmissionSubscription') # noqa
return self.get_queryset() \ return self.get_queryset() \
.annotate(feedback_created=_get_counter( .annotate(feedback_created=_get_counter(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment