Simplify and remove old code

This commit is contained in:
Roberto Rosario
2015-04-07 16:04:09 -04:00
parent 69a7efd6f0
commit 9084c3c651
9 changed files with 145 additions and 158 deletions

View File

@@ -184,10 +184,10 @@ class SetupIndexDocumentTypesView(AssignRemoveView):
return super(SetupIndexDocumentTypesView, self).dispatch(request, *args, **kwargs)
def left_list(self):
return generate_choices_w_labels(self.index.get_document_types_not_in_index(), display_object_type=False)
return generate_choices_w_labels(self.index.get_document_types_not_in_index())
def right_list(self):
return generate_choices_w_labels(self.index.document_types.all(), display_object_type=False)
return generate_choices_w_labels(self.index.document_types.all())
def remove(self, item):
self.index.document_types.remove(item)