Skip to content

Commit

Permalink
make celery_task_name as property to allow easier cutomisation
Browse files Browse the repository at this point in the history
  • Loading branch information
saxix committed Dec 18, 2024
1 parent 6a91719 commit 853f4da
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/django_celery_boost/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,10 @@ def celery_app(cls) -> "celery.app.base.Celery":
cls._celery_app = app
return cls._celery_app

@property
def celery_task_name(self):
return self.default_celery_task_name

@classmethod
def check(cls, **kwargs):
errors = super().check(**kwargs)
Expand Down

0 comments on commit 853f4da

Please sign in to comment.