Skip to content

Commit 1c267f4

Browse files
author
nagytech
authored
Fix style
1 parent d78a124 commit 1c267f4

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

wtforms_sqlalchemy/fields.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff 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":

0 commit comments

Comments
 (0)