# HG changeset patch # User neko259 # Date 2016-12-29 18:11:55 # Node ID eaa1de722d6aba59c09a93816d6c555c672cad78 # Parent 0c26a5efad4c8093a2929381dcf4111fdeb4365e Properly order attachments across one post diff --git a/boards/models/attachment/__init__.py b/boards/models/attachment/__init__.py --- a/boards/models/attachment/__init__.py +++ b/boards/models/attachment/__init__.py @@ -42,6 +42,10 @@ class AttachmentManager(models.Manager): class Attachment(models.Model): objects = AttachmentManager() + class Meta: + app_label = 'boards' + ordering = ('id',) + file = models.FileField(upload_to=get_upload_filename, null=True) mimetype = models.CharField(max_length=50, null=True) hash = models.CharField(max_length=36, null=True)