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):
def _render_triggers(self, w, domid, form, field, rtype):
parent, container = parent_and_container(form.edited_entity)
assert container is not None
if container.cw_etype != 'SEDAArchiveTransfer':
w('XXX FIXME')
return
req = form._cw
try:
constraint = RDEF_CONSTRAINTS[(form.edited_entity.cw_etype, field.name)]
......
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