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

Add a fixme on data object vocabulary for archive unit component

Proper fix has to be discussed, in the mean time don't crash.
parent d62432403bed
...@@ -47,6 +47,9 @@ class ContainedRelationFacetWidget(rwdg.RelationFacetWidget): ...@@ -47,6 +47,9 @@ class ContainedRelationFacetWidget(rwdg.RelationFacetWidget):
def _render_triggers(self, w, domid, form, field, rtype): def _render_triggers(self, w, domid, form, field, rtype):
parent, container = parent_and_container(form.edited_entity) parent, container = parent_and_container(form.edited_entity)
assert container is not None assert container is not None
if container.cw_etype != 'SEDAArchiveTransfer':
req = form._cw req = form._cw
try: try:
constraint = RDEF_CONSTRAINTS[(form.edited_entity.cw_etype,] constraint = RDEF_CONSTRAINTS[(form.edited_entity.cw_etype,]
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