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