Replace index, workflow, document and statistics views that use 'object_list' to SingleObjectListView class.
This commit is contained in:
@@ -1009,10 +1009,12 @@ class DocumentTypeFilenameListView(SingleObjectListView):
|
||||
),
|
||||
'hide_link': True,
|
||||
'navigation_object_list': ('document_type',),
|
||||
'object_list': self.get_document_type().filenames.all(),
|
||||
'title': _('Filenames for document type: %s') % self.get_document_type(),
|
||||
}
|
||||
|
||||
def get_queryset(self):
|
||||
return self.get_document_type().filenames.all()
|
||||
|
||||
|
||||
class DocumentTypeFilenameEditView(SingleObjectEditView):
|
||||
fields = ('enabled', 'filename',)
|
||||
|
||||
Reference in New Issue
Block a user