mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-18 13:06:30 -06:00
Fix managers on Graph and ExportTemplate
This commit is contained in:
parent
a8145fe4c2
commit
c1a37db871
@ -232,6 +232,8 @@ class Graph(models.Model):
|
|||||||
verbose_name='Link URL'
|
verbose_name='Link URL'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
objects = RestrictedQuerySet.as_manager()
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
ordering = ('type', 'weight', 'name', 'pk') # (type, weight, name) may be non-unique
|
ordering = ('type', 'weight', 'name', 'pk') # (type, weight, name) may be non-unique
|
||||||
|
|
||||||
@ -299,6 +301,8 @@ class ExportTemplate(models.Model):
|
|||||||
help_text='Extension to append to the rendered filename'
|
help_text='Extension to append to the rendered filename'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
objects = RestrictedQuerySet.as_manager()
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
ordering = ['content_type', 'name']
|
ordering = ['content_type', 'name']
|
||||||
unique_together = [
|
unique_together = [
|
||||||
|
Loading…
Reference in New Issue
Block a user