Rearrange source to src dir.
[redakcja.git] / apps / catalogue / tasks.py
diff --git a/apps/catalogue/tasks.py b/apps/catalogue/tasks.py
deleted file mode 100644 (file)
index e9b8cf9..0000000
+++ /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)
-