Skip to content

Commit

Permalink
Fix default_app_config deprecation (#221)
Browse files Browse the repository at this point in the history
  • Loading branch information
auvipy committed Jul 14, 2021
1 parent 4d000c2 commit 67b8158
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion django_celery_results/__init__.py
Expand Up @@ -7,6 +7,8 @@

from collections import namedtuple

import django

__version__ = '2.2.0'
__author__ = 'Asif Saif Uddin, Ask Solem'
__contact__ = 'auvipy@gmai.com, ask@celeryproject.org'
Expand All @@ -30,4 +32,5 @@

__all__ = []

default_app_config = 'django_celery_results.apps.CeleryResultConfig'
if django.VERSION < (3, 2):
default_app_config = 'django_celery_results.apps.CeleryResultConfig'

0 comments on commit 67b8158

Please sign in to comment.