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

Drop useless condition on container being None.

At this point we expect a container as in its sibling '_render_triggers' method.
parent b65bcce44944
......@@ -84,8 +84,8 @@ class ContainedRelationFacetWidget(rwdg.RelationFacetWidget):
# first retrieve the container entity
_, container = parent_and_container(entity)
assert container is not None
# and put it as an extra url param
if container is not None:
url_params['container'] = text_type(container.eid)
return super(ContainedRelationFacetWidget, self).trigger_search_url(entity, url_params)
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