Backport common mixin and generics improvements
* Rename get_object_list to get_source_queryset. * Add uniqueness validation to SingleObjectCreateView. * Remove MultipleInstanceActionMixin. * Backport MultipleObjectMixin improvements. * Remove ObjectListPermissionFilterMixin. * Add and improve tests. Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
@@ -95,7 +95,7 @@ class DocumentListView(SingleObjectListView):
|
||||
'title': _('All documents'),
|
||||
}
|
||||
|
||||
def get_object_list(self):
|
||||
def get_source_queryset(self):
|
||||
return self.get_document_queryset()
|
||||
|
||||
|
||||
@@ -347,7 +347,7 @@ class DocumentDuplicatesListView(DocumentListView):
|
||||
)
|
||||
return context
|
||||
|
||||
def get_object_list(self):
|
||||
def get_source_queryset(self):
|
||||
try:
|
||||
return DuplicatedDocument.objects.get(
|
||||
document=self.get_document()
|
||||
|
||||
Reference in New Issue
Block a user