1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Fixes #7741: Fix 404 when attaching multiple images in succession

This commit is contained in:
jeremystretch
2021-11-09 16:46:58 -05:00
parent be91235858
commit 3ad773beb3
5 changed files with 25 additions and 6 deletions

View File

@@ -357,6 +357,8 @@ class ImageAttachment(BigIDModel):
objects = RestrictedQuerySet.as_manager()
clone_fields = ('content_type', 'object_id')
class Meta:
ordering = ('name', 'pk') # name may be non-unique