forked from ScoDoc/ScoDoc
merged master
This commit is contained in:
parent
1af6f79da9
commit
e4c9e5f9e8
@ -130,12 +130,6 @@ class PlacementForm(FlaskForm):
|
||||
# ],
|
||||
# )
|
||||
submit = SubmitField("OK")
|
||||
dynamic_fields = {}
|
||||
|
||||
def clear_dynamics(self):
|
||||
if self.dynamic_fields:
|
||||
for field_name in self.dynamic_fields:
|
||||
del self._fields[field_name]
|
||||
|
||||
def add_dynamic(self, name, field):
|
||||
breakpoint()
|
||||
@ -146,9 +140,6 @@ class PlacementForm(FlaskForm):
|
||||
breakpoint()
|
||||
self.dynamic_fields[name] = field
|
||||
|
||||
def get_dynamic(self, name):
|
||||
return self.dynamic_fields[name]
|
||||
|
||||
def __init__(self, groups_tree, formdata=None, data=None, **kwargs):
|
||||
super().__init__(formdata=formdata, data=data, **kwargs)
|
||||
# first remove previous dynamic fields that might have been created for this form
|
||||
|
Loading…
x
Reference in New Issue
Block a user