Add iter(Form) logic, to loop through fields

This commit is contained in:
Lance Edgar 2022-07-24 21:11:12 -05:00
parent 36d4f0a5f7
commit f33d7b7f90

View file

@ -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('-')