Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cubicweb
cubes
seda
Commits
cca4292b7d0f
Commit
30f1e344
authored
May 27, 2016
by
Sylvain Thénault
Browse files
[ui] Disable creation form feature of the relation widget
parent
c1ed2a14d242
Changes
1
Hide whitespace changes
Inline
Side-by-side
views/dataobject.py
View file @
cca4292b
...
...
@@ -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.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment