PEP8 cleanups.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
@@ -154,6 +154,7 @@ class DocumentsApp(MayanAppConfig):
|
||||
ModelEventType.register(
|
||||
model=DocumentType, event_types=(
|
||||
event_document_create,
|
||||
event_document_type_created,
|
||||
event_document_type_edited,
|
||||
)
|
||||
)
|
||||
|
||||
@@ -79,7 +79,7 @@ class DashboardWidgetDocumentsTypesTotal(DashboardWidgetNumeric):
|
||||
class DashboardWidgetDocumentsNewThisMonth(DashboardWidgetNumeric):
|
||||
icon_class = icon_dashboard_new_documents_this_month
|
||||
label = _('New documents this month')
|
||||
link=reverse_lazy(
|
||||
link = reverse_lazy(
|
||||
'statistics:statistic_detail',
|
||||
args=('new-documents-per-month',)
|
||||
)
|
||||
@@ -92,7 +92,7 @@ class DashboardWidgetDocumentsNewThisMonth(DashboardWidgetNumeric):
|
||||
class DashboardWidgetDocumentsPagesNewThisMonth(DashboardWidgetNumeric):
|
||||
icon_class = icon_dashboard_pages_per_month
|
||||
label = _('New pages this month')
|
||||
link=reverse_lazy(
|
||||
link = reverse_lazy(
|
||||
'statistics:statistic_detail',
|
||||
args=('new-document-pages-per-month',)
|
||||
)
|
||||
|
||||
@@ -15,8 +15,7 @@ from common.generics import (
|
||||
|
||||
from ..forms import DocumentTypeFilenameForm_create
|
||||
from ..icons import (
|
||||
icon_document_type_filename, icon_document_type_filename_create,
|
||||
icon_document_type_setup
|
||||
icon_document_type_filename, icon_document_type_setup
|
||||
)
|
||||
from ..links import (
|
||||
link_document_type_create, link_document_type_filename_create
|
||||
|
||||
@@ -15,9 +15,8 @@ from common.compressed_files import ZipArchive
|
||||
from common.exceptions import ActionError
|
||||
from common.generics import (
|
||||
ConfirmView, FormView, MultipleObjectConfirmActionView,
|
||||
MultipleObjectConfirmActionView, MultipleObjectFormActionView,
|
||||
SingleObjectDetailView, SingleObjectDownloadView, SingleObjectEditView,
|
||||
SingleObjectListView
|
||||
MultipleObjectFormActionView, SingleObjectDetailView,
|
||||
SingleObjectDownloadView, SingleObjectEditView, SingleObjectListView
|
||||
)
|
||||
from common.mixins import MultipleInstanceActionMixin
|
||||
from common.utils import encapsulate
|
||||
@@ -90,6 +89,7 @@ class DocumentListView(SingleObjectListView):
|
||||
else:
|
||||
return queryset
|
||||
|
||||
|
||||
class DeletedDocumentDeleteView(ConfirmView):
|
||||
extra_context = {
|
||||
'title': _('Delete the selected document?')
|
||||
|
||||
Reference in New Issue
Block a user