Explorar o código

Fix managers on Graph and ExportTemplate

Jeremy Stretch %!s(int64=5) %!d(string=hai) anos
pai
achega
c1a37db871
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      netbox/extras/models/models.py

+ 4 - 0
netbox/extras/models/models.py

@@ -232,6 +232,8 @@ class Graph(models.Model):
         verbose_name='Link URL'
     )
 
+    objects = RestrictedQuerySet.as_manager()
+
     class Meta:
         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'
     )
 
+    objects = RestrictedQuerySet.as_manager()
+
     class Meta:
         ordering = ['content_type', 'name']
         unique_together = [