Fix managers on Graph and ExportTemplate

This commit is contained in:
Jeremy Stretch 2020-06-08 13:41:12 -04:00
parent a8145fe4c2
commit c1a37db871

View File

@ -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 = [