Commit d98c5604 authored by Sylvain Thénault's avatar Sylvain Thénault
Browse files

[views] Use the relation widget on relations targeting an authority record

On the saemref demo with a few thousands of authority records, it's necessary
to have such 'lazy' widget.
parent 311edbe5c745
......@@ -911,10 +911,13 @@ for rtype, role in content_ordered_fields:
pvs.tag_object_of(('*', 'seda_seq_alt_archive_unit_archive_unit_ref_id_management', '*'), 'hidden')
affk.tag_subject_of(('SEDALanguage', 'seda_language_to', '*'),
{'widget': rwdg.RelationFacetWidget})
affk.tag_subject_of(('SEDADescriptionLanguage', 'seda_description_language_to', '*'),
{'widget': rwdg.RelationFacetWidget})
for rtype in ('seda_language_to', 'seda_description_language_to',
'seda_archival_agency', 'seda_transferring_agency',
'seda_originating_agency_to', 'seda_submission_agency_to',
'seda_authorized_agent_to',
'seda_writer_to', 'seda_addressee_to', 'seda_recipient_to'):
affk.tag_subject_of(('*', rtype, '*'),
{'widget': rwdg.RelationFacetWidget})
affk.set_fields_order(CONTENT_ETYPE,
['user_cardinality', 'user_annotation'] + content_ordered_fields)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment