fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
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
--- 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)
-