Fix typos from the 3-way "papercut" patch merge.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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()
|
||||
}
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user