Added multi item action subform for generic list subtemplate and related code

This commit is contained in:
Roberto Rosario
2011-03-15 17:34:47 -04:00
parent 709f2a14e3
commit d80ec935da
6 changed files with 30 additions and 5 deletions

View File

@@ -754,7 +754,7 @@ def document_clear_transformations(request, document_id=None, document_id_list=N
for transformation in document_page.documentpagetransformation_set.all():
transformation.delete()
if len(documents) == 1:
if len(documents) == 1:
messages.success(request, _(u'All the page transformations for document: %s, have been deleted successfully.') % documents)
elif len(documents) > 1:
messages.success(request, _(u'All the page transformations for the documents: %s, have been deleted successfully.') % documents)