X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/ce8d791a5298e0cb2569034aec4c8b57afac97b2..5913c54d19b8f6775633176032161d49f9b2f1aa:/apps/catalogue/tasks.py?ds=sidebyside diff --git a/apps/catalogue/tasks.py b/apps/catalogue/tasks.py deleted file mode 100644 index e9b8cf9b..00000000 --- a/apps/catalogue/tasks.py +++ /dev/null @@ -1,11 +0,0 @@ -from celery.task import task - - -@task -def refresh_by_pk(cls, pk): - cls._default_manager.get(pk=pk).refresh() - - -def refresh_instance(instance): - refresh_by_pk.delay(type(instance), instance.pk) -