File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -50,9 +50,9 @@ class QuerySelectField(SelectFieldBase):
5050 object's `__str__` will be used.
5151
5252 Specify `get_group` to allow `option` elements to be grouped into `optgroup`
53- sections. If a string, this is the name of an attribute on the model
54- containing the group name. If a one-argument callable, this callable will
55- be passed the model instance and expected to return a group name. Otherwise,
53+ sections. If a string, this is the name of an attribute on the model
54+ containing the group name. If a one-argument callable, this callable will
55+ be passed the model instance and expected to return a group name. Otherwise,
5656 the `option` elements will not be grouped. Note: the result of `get_group`
5757 will be used as both the grouping key and the display label in the `select`
5858 options.
@@ -158,8 +158,6 @@ def _choices_generator(self, choices):
158158 for pk , obj in _choices :
159159 yield (pk , self .get_label (obj ), obj == self .data , self .get_render_kw (obj ))
160160
161-
162-
163161 def process_formdata (self , valuelist ):
164162 if valuelist :
165163 if self .allow_blank and valuelist [0 ] == "__None" :
You can’t perform that action at this time.
0 commit comments