Add sortable columns to all apps
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
@@ -107,12 +107,13 @@ class DocumentParsingApp(MayanAppConfig):
|
||||
)
|
||||
|
||||
SourceColumn(
|
||||
source=DocumentVersionParseError, label=_('Document'),
|
||||
func=lambda context: document_link(context['object'].document_version.document)
|
||||
attribute='document_version__document',
|
||||
is_attribute_absolute_url=True, is_identifier=True, is_sortable=True,
|
||||
source=DocumentVersionParseError
|
||||
)
|
||||
SourceColumn(
|
||||
source=DocumentVersionParseError, label=_('Added'),
|
||||
attribute='datetime_submitted'
|
||||
attribute='datetime_submitted', is_sortable=True,
|
||||
source=DocumentVersionParseError
|
||||
)
|
||||
SourceColumn(
|
||||
source=DocumentVersionParseError, label=_('Result'),
|
||||
|
||||
Reference in New Issue
Block a user