X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/6ff3ca2d4ba9d131d5a3a96e9f74573668980f0b..ab81d95154bd35a67078cc6c926b5b9fbdd9011b:/apps/api/models.py 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)