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

[ui] Disable creation form feature of the relation widget

parent c1ed2a14d242
......@@ -80,6 +80,8 @@ class ContainedRelationFacetWidget(rwdg.RelationFacetWidget):
class ContainedSearchForRelatedEntitiesView(rwdg.SearchForRelatedEntitiesView):
__select__ = rwdg.SearchForRelatedEntitiesView.__select__ & match_form_params('container')
has_creation_form = False
def linkable_rset(self):
"""Return rset of entities to be displayed as possible values for the
edited relation. You may want to override this.
Supports Markdown
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