Add columns for duplicated document proxies
Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>
This commit is contained in:
@@ -343,6 +343,10 @@ class DocumentsApp(MayanAppConfig):
|
||||
)
|
||||
|
||||
# DuplicatedDocument
|
||||
SourceColumn(
|
||||
attribute='label', is_absolute_url=True, is_identifier=True,
|
||||
is_sortable=True, source=DuplicatedDocumentProxy
|
||||
)
|
||||
SourceColumn(
|
||||
func=lambda context: document_page_thumbnail_widget.render(
|
||||
instance=context['object']
|
||||
@@ -350,8 +354,9 @@ class DocumentsApp(MayanAppConfig):
|
||||
)
|
||||
SourceColumn(
|
||||
func=lambda context: context['object'].get_duplicate_count(
|
||||
user=context['request'].user,
|
||||
), label=_('Duplicates'), source=DuplicatedDocumentProxy
|
||||
user=context['request'].user
|
||||
), include_label=True, label=_('Duplicates'),
|
||||
source=DuplicatedDocumentProxy
|
||||
)
|
||||
|
||||
app.conf.beat_schedule.update(
|
||||
|
||||
Reference in New Issue
Block a user