diff --git a/api/api/models/audio.py b/api/api/models/audio.py index 1fd7c45292d..a081e635705 100644 --- a/api/api/models/audio.py +++ b/api/api/models/audio.py @@ -290,7 +290,6 @@ class Meta: class AudioReport(AbstractMediaReport): media_class = Audio - url_frag = "audio" media_obj = models.ForeignKey( to="Audio", diff --git a/api/api/models/image.py b/api/api/models/image.py index f40328bb799..d0ad5323a17 100644 --- a/api/api/models/image.py +++ b/api/api/models/image.py @@ -109,7 +109,6 @@ class Meta: class ImageReport(AbstractMediaReport): media_class = Image - url_frag = "images" media_obj = models.ForeignKey( to="Image", diff --git a/api/api/models/media.py b/api/api/models/media.py index 74629f84ca2..22b0925e506 100644 --- a/api/api/models/media.py +++ b/api/api/models/media.py @@ -136,13 +136,11 @@ class AbstractMediaReport(models.Model): Generic model from which to inherit all reported media classes. 'Reported' here refers to content reports such as sensitive, copyright-violating or - deleted content. Subclasses must populate fields ``media_class`` and ``url_frag``. + deleted content. Subclasses must populate the field ``media_class``. """ media_class: type[models.Model] = None """the model class associated with this media type e.g. ``Image`` or ``Audio``""" - url_frag: str = None - """the fragment used in the URL path for the media item e.g. ``images`` or ``audio``""" REPORT_CHOICES = [(MATURE, MATURE), (DMCA, DMCA), (OTHER, OTHER)]