Code style cleanups
Add keyword arguments. Sort arguments and models. Move literals to their own module. Prepend handler_ to signal handlers. Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
@@ -88,7 +88,7 @@ class DocumentParsingApp(MayanAppConfig):
|
||||
)
|
||||
|
||||
ModelField(
|
||||
Document, name='versions__pages__content__content'
|
||||
model=Document, name='versions__pages__content__content'
|
||||
)
|
||||
|
||||
ModelPermission.register(
|
||||
@@ -107,8 +107,8 @@ class DocumentParsingApp(MayanAppConfig):
|
||||
|
||||
SourceColumn(
|
||||
attribute='document_version__document',
|
||||
is_attribute_absolute_url=True, is_identifier=True, is_sortable=True,
|
||||
source=DocumentVersionParseError
|
||||
is_attribute_absolute_url=True, is_identifier=True,
|
||||
is_sortable=True, source=DocumentVersionParseError
|
||||
)
|
||||
SourceColumn(
|
||||
attribute='datetime_submitted', is_sortable=True,
|
||||
|
||||
Reference in New Issue
Block a user