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 1
1
"""Database models."""
2
2
3
- import json
4
-
5
3
from django .utils .translation import gettext_lazy as _
6
4
7
5
from django_celery_results .models .abstract import (
@@ -25,6 +23,8 @@ class ChordCounter(AbstractChordCounter):
25
23
"""Chord synchronisation."""
26
24
27
25
class Meta (AbstractChordCounter .Meta ):
26
+ """Table information."""
27
+
28
28
abstract = False
29
29
app_label = "django_celery_results"
30
30
Original file line number Diff line number Diff line change 2
2
from django .conf import settings
3
3
from django .core .exceptions import ImproperlyConfigured
4
4
5
- from .generic import ChordCounter , GroupResult , TaskResult
6
-
7
5
8
6
def taskresult_model ():
9
7
"""Return the TaskResult model that is active in this project."""
10
8
if not hasattr (settings , 'CELERY_RESULTS_TASKRESULT_MODEL' ):
9
+ from .generic import TaskResult
10
+
11
11
return TaskResult
12
12
13
13
try :
@@ -31,6 +31,8 @@ def chordcounter_model():
31
31
"""Return the ChordCounter model that is active in this project."""
32
32
33
33
if not hasattr (settings , 'CELERY_RESULTS_CHORDCOUNTER_MODEL' ):
34
+ from .generic import ChordCounter
35
+
34
36
return ChordCounter
35
37
36
38
try :
@@ -53,6 +55,8 @@ def chordcounter_model():
53
55
def groupresult_model ():
54
56
"""Return the GroupResult model that is active in this project."""
55
57
if not hasattr (settings , 'CELERY_RESULTS_GROUPRESULT_MODEL' ):
58
+ from .generic import GroupResult
59
+
56
60
return GroupResult
57
61
58
62
try :
You can’t perform that action at this time.
0 commit comments