X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/a33d4ff020fa16e0359991023a2cd031831e9ec4..048c03a936a31dc5e1a1f14a8e2541e7fb28882d:/apps/api/models.py?ds=inline diff --git a/apps/api/models.py b/apps/api/models.py index 20dd12985..5a3d42440 100644 --- 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) - 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)