Add Form.insert()
method, to insert field based on index
This commit is contained in:
parent
01b78d7513
commit
e284370c4b
|
@ -447,6 +447,9 @@ class Form(object):
|
|||
def append(self, field):
|
||||
self.fields.append(field)
|
||||
|
||||
def insert(self, index, field):
|
||||
self.fields.insert(index, field)
|
||||
|
||||
def insert_before(self, field, newfield):
|
||||
self.fields.insert_before(field, newfield)
|
||||
|
||||
|
|
Loading…
Reference in a new issue