first commit
This commit is contained in:
6
helix/forms/grouped_form.py
Normal file
6
helix/forms/grouped_form.py
Normal file
@@ -0,0 +1,6 @@
|
||||
from flask.ext.wtf import Form
|
||||
|
||||
class GroupedForm(Form):
|
||||
def group(self, label):
|
||||
return [field for field in self if field.render_kw and field.render_kw['group'] == label]
|
||||
|
||||
Reference in New Issue
Block a user