Skip to content

Commit dcc810f

Browse files
Make generic models swappable
Suggestions from code review Co-authored-by: Bruno Alla <[email protected]>
1 parent 4c24fde commit dcc810f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

django_celery_results/models/generic.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ class Meta(AbstractTaskResult.Meta):
1515

1616
abstract = False
1717
app_label = "django_celery_results"
18+
swappable = "CELERY_RESULTS_TASKRESULT_MODEL"
1819

1920

2021
class ChordCounter(AbstractChordCounter):
@@ -25,6 +26,7 @@ class Meta(AbstractChordCounter.Meta):
2526

2627
abstract = False
2728
app_label = "django_celery_results"
29+
swappable = "CELERY_RESULTS_CHORDCOUNTER_MODEL"
2830

2931

3032
class GroupResult(AbstractGroupResult):
@@ -35,3 +37,4 @@ class Meta(AbstractGroupResult.Meta):
3537

3638
abstract = False
3739
app_label = "django_celery_results"
40+
swappable = "CELERY_RESULTS_GROUPRESULT_MODEL"

0 commit comments

Comments
 (0)