Skip to content

Commit

Permalink
Stupid precedence issue. Closes #62
Browse files Browse the repository at this point in the history
  • Loading branch information
ask committed Aug 22, 2011
1 parent 5f359c7 commit b09c153
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions djcelery/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ def __repr__(self):
if (django.VERSION[0], django.VERSION[1]) >= (1, 1):
# Keep models away from syncdb/reset if Django database
# backend is not being used.
if "database" not in getattr(settings,
"CELERY_RESULT_BACKEND", None) or "database":
if "database" not in (getattr(settings,
"CELERY_RESULT_BACKEND", None) or "database"):
for result_model in (TaskMeta, TaskSetMeta):
result_model._meta.managed = False

0 comments on commit b09c153

Please sign in to comment.