X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/357027375ff8867f42ca34bcbfb5a78b5b185fc3..cd40895f8cdb7ffe69612de434dfb85bcd391d89:/src/api/models.py?ds=inline diff --git a/src/api/models.py b/src/api/models.py index 5a3d42440..2f742834f 100644 --- a/src/api/models.py +++ b/src/api/models.py @@ -34,6 +34,7 @@ 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, - created_at=instance.created_at, category=category, slug=instance.slug) + 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)