Add iter(Form)
logic, to loop through fields
This commit is contained in:
parent
36d4f0a5f7
commit
f33d7b7f90
1 changed files with 3 additions and 0 deletions
|
@ -374,6 +374,9 @@ class Form(object):
|
|||
self.component = component
|
||||
self.vuejs_field_converters = vuejs_field_converters or {}
|
||||
|
||||
def __iter__(self):
|
||||
return iter(self.fields)
|
||||
|
||||
@property
|
||||
def component_studly(self):
|
||||
words = self.component.split('-')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue