Add widget support to SourceColumn

Allow passing a widget class to SourceColumn. This makes
using lambdas to render model column unnecesary and are
mostly removed too.

Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>
This commit is contained in:
Roberto Rosario
2018-12-22 05:35:31 -04:00
parent 360e756093
commit 64e1c6bb67
59 changed files with 450 additions and 402 deletions

View File

@@ -121,16 +121,17 @@ class FileMetadataApp(MayanAppConfig):
model=DocumentTypeSettings, related='document_type',
)
SourceColumn(source=FileMetadataEntry, attribute='key')
SourceColumn(source=FileMetadataEntry, attribute='value')
SourceColumn(attribute='key', source=FileMetadataEntry)
SourceColumn(attribute='value', source=FileMetadataEntry)
SourceColumn(
source=DocumentVersionDriverEntry, attribute='driver'
attribute='driver', source=DocumentVersionDriverEntry
)
SourceColumn(
source=DocumentVersionDriverEntry, attribute='driver__internal_name'
attribute='driver__internal_name',
source=DocumentVersionDriverEntry
)
SourceColumn(
source=DocumentVersionDriverEntry, attribute='get_attribute_count'
attribute='get_attribute_count', source=DocumentVersionDriverEntry
)
app.conf.task_queues.append(