File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
django_celery_results/models Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 11"""Database models."""
22
3- import json
4-
53from django .utils .translation import gettext_lazy as _
64
75from django_celery_results .models .abstract import (
@@ -25,6 +23,8 @@ class ChordCounter(AbstractChordCounter):
2523 """Chord synchronisation."""
2624
2725 class Meta (AbstractChordCounter .Meta ):
26+ """Table information."""
27+
2828 abstract = False
2929 app_label = "django_celery_results"
3030
Original file line number Diff line number Diff line change 22from django .conf import settings
33from django .core .exceptions import ImproperlyConfigured
44
5- from .generic import ChordCounter , GroupResult , TaskResult
6-
75
86def taskresult_model ():
97 """Return the TaskResult model that is active in this project."""
108 if not hasattr (settings , 'CELERY_RESULTS_TASKRESULT_MODEL' ):
9+ from .generic import TaskResult
10+
1111 return TaskResult
1212
1313 try :
@@ -31,6 +31,8 @@ def chordcounter_model():
3131 """Return the ChordCounter model that is active in this project."""
3232
3333 if not hasattr (settings , 'CELERY_RESULTS_CHORDCOUNTER_MODEL' ):
34+ from .generic import ChordCounter
35+
3436 return ChordCounter
3537
3638 try :
@@ -53,6 +55,8 @@ def chordcounter_model():
5355def groupresult_model ():
5456 """Return the GroupResult model that is active in this project."""
5557 if not hasattr (settings , 'CELERY_RESULTS_GROUPRESULT_MODEL' ):
58+ from .generic import GroupResult
59+
5660 return GroupResult
5761
5862 try :
You can’t perform that action at this time.
0 commit comments