kopia lustrzana https://github.com/wagtail/wagtail
Remove explicit permission definitions on wagtailimage.Image as they clash with the auto-created ones
rodzic
34e5fc0574
commit
939396767c
|
@ -105,13 +105,6 @@ class AbstractImage(models.Model, TagSearchable):
|
|||
class Image(AbstractImage):
|
||||
pass
|
||||
|
||||
class Meta:
|
||||
permissions = (
|
||||
('add_image', "Can add image"),
|
||||
('change_image', "Can change image"),
|
||||
('delete_image', "Can delete image"),
|
||||
)
|
||||
|
||||
|
||||
# Receive the pre_delete signal and delete the file associated with the model instance.
|
||||
@receiver(pre_delete, sender=Image)
|
||||
|
|
Ładowanie…
Reference in New Issue