Add sortable columns to all apps
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
@@ -162,14 +162,25 @@ class MetadataApp(MayanAppConfig):
|
||||
)
|
||||
|
||||
SourceColumn(
|
||||
source=DocumentMetadata, label=_('Value'),
|
||||
attribute='value'
|
||||
attribute='metadata_type', is_identifier=True,
|
||||
is_sortable=True, source=DocumentMetadata
|
||||
)
|
||||
SourceColumn(
|
||||
attribute='is_required', label=_('Required'),
|
||||
source=DocumentMetadata, widget=TwoStateWidget
|
||||
attribute='value', is_sortable=True, source=DocumentMetadata
|
||||
)
|
||||
|
||||
SourceColumn(
|
||||
attribute='is_required', source=DocumentMetadata,
|
||||
widget=TwoStateWidget
|
||||
)
|
||||
|
||||
SourceColumn(
|
||||
attribute='label', is_identifier=True, is_sortable=True,
|
||||
source=MetadataType
|
||||
)
|
||||
SourceColumn(attribute='name', is_sortable=True, source=MetadataType)
|
||||
|
||||
|
||||
app.conf.CELERY_QUEUES.append(
|
||||
Queue('metadata', Exchange('metadata'), routing_key='metadata'),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user