fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
changes from server
[wolnelektury.git]
/
apps
/
api
/
models.py
diff --git
a/apps/api/models.py
b/apps/api/models.py
index
20dd129
..
5a3d424
100644
(file)
--- a/
apps/api/models.py
+++ b/
apps/api/models.py
@@
-34,6
+34,6
@@
def _pre_delete_handler(sender, instance, **kwargs):
else:
category = None
content_type = ContentType.objects.get_for_model(sender)
else:
category = None
content_type = ContentType.objects.get_for_model(sender)
- Deleted.objects.create(content_type=content_type, object_id=instance.id,
+ Deleted.objects.create(content_type=content_type, object_id=instance.id,
created_at=instance.created_at, category=category, slug=instance.slug)
pre_delete.connect(_pre_delete_handler)
created_at=instance.created_at, category=category, slug=instance.slug)
pre_delete.connect(_pre_delete_handler)