diff --git a/attachments/models.py b/attachments/models.py index 9f14229..2d9573a 100644 --- a/attachments/models.py +++ b/attachments/models.py @@ -14,6 +14,9 @@ class Attachment(models.Model): original_file = models.FileField() processed_file = models.FileField(blank=True, null=True) + class Meta: + ordering = ["description"] + def __str__(self): return f"{self.description} ({self.original_file.name})"