Fix managers on Graph and ExportTemplate
This commit is contained in:
@@ -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 = [
|
||||||
|
Reference in New Issue
Block a user