diff --git a/cast/models/audio.py b/cast/models/audio.py index fc1c6983..02ac450f 100644 --- a/cast/models/audio.py +++ b/cast/models/audio.py @@ -75,6 +75,9 @@ class Audio(CollectionMember, index.Indexed, TimeStampedModel): episodes: models.QuerySet["Episode"] # mypy needs this tags = TaggableManager(help_text=None, blank=True, verbose_name=_("tags")) + class Meta: + ordering = ("-created",) + @property def uploaded_audio_files(self) -> Iterable[tuple[str, models.FileField]]: for name in self.audio_formats: diff --git a/docs/releases/0.2.41.rst b/docs/releases/0.2.41.rst index 502e85c7..236fdeb4 100644 --- a/docs/releases/0.2.41.rst +++ b/docs/releases/0.2.41.rst @@ -7,3 +7,4 @@ not yet finished. - #167 Fixed the styling of the audio player - #168 Add transcript model - Better icons for audio, video and transcript MenuItems +- Order the audio models by default by -created for forms with audio foreign key like TranscriptForm