mirror of
https://github.com/netbox-community/netbox.git
synced 2026-04-17 22:49:59 +02:00
Fixes #4912: Fix image attachment API endpoint; add API view tests
This commit is contained in:
@@ -387,6 +387,8 @@ class ImageAttachment(models.Model):
|
||||
auto_now_add=True
|
||||
)
|
||||
|
||||
objects = RestrictedQuerySet.as_manager()
|
||||
|
||||
class Meta:
|
||||
ordering = ('name', 'pk') # name may be non-unique
|
||||
|
||||
|
||||
Reference in New Issue
Block a user