Skip to content

Commit

Permalink
Value relation order by value (#951)
Browse files Browse the repository at this point in the history
* Add 'orderbyvalue' to Edite Type Value Relation.

* Refactoring

* Typo

* Add 'allowmulti' options in valuerelation widget

* Fix key and value inverted on valuerelation widget

---------

Co-authored-by: wlorenzetti <[email protected]>
  • Loading branch information
wlorenzetti and wlorenzetti authored Oct 10, 2024
1 parent 0d541e5 commit c43f17a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions g3w-admin/qdjango/utils/edittype.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,8 @@ def input_form(self):

# add params for get value
input_form['input']['options'].update({
'key': self.Value,
'value': self.Key,
'key': self.Key,
'value': self.Value,
'usecompleter': self.make_bool_from_value(self.UseCompleter),
'orderbyvalue': self.make_bool_from_value(self.OrderByValue),
'allowmulti': self.make_bool_from_value(self.AllowMulti),
Expand Down

0 comments on commit c43f17a

Please sign in to comment.