Fix typos from the 3-way "papercut" patch merge.

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2018-08-24 01:23:13 -04:00
parent c6d3ffa28b
commit d6b767eb93
3 changed files with 11 additions and 4 deletions

View File

@@ -83,7 +83,6 @@ class CheckoutListView(DocumentListView):
context = super(CheckoutListView, self).get_extra_context()
context.update(
{
'title': _('Documents checked out'),
'extra_columns': (
{
'name': _('User'),
@@ -111,6 +110,7 @@ class CheckoutListView(DocumentListView):
'time.'
),
'no_results_title': _('No documents have been checked out'),
'title': _('Documents checked out'),
}
)
return context

View File

@@ -514,12 +514,12 @@ class SetupWorkflowStateListView(SingleObjectListView):
self.request, {'object': self.get_workflow()}
)
),
'no_results_title': _(
'This workflow doesn\'t have any states'
),
'no_results_text': _(
'Create states and link them using transitions.'
),
'no_results_title': _(
'This workflow doesn\'t have any states'
),
'object': self.get_workflow(),
'title': _('States of workflow: %s') % self.get_workflow()
}

View File

@@ -267,6 +267,13 @@ class DocumentMetadataEditView(MultipleObjectFormActionView):
def get_extra_context(self):
queryset = self.get_queryset()
id_list = ','.join(
map(
force_text,
queryset.values_list('pk', flat=True)
)
)
if queryset.count() == 1:
no_results_main_link = link_metadata_add.resolve(
context=RequestContext(