strasbourg: add support for drop=True

(support is added to w.c.s. in #17524)
This commit is contained in:
Frédéric Péters 2017-07-11 11:14:19 +02:00
parent 42788dcad5
commit 820dc24c3d
1 changed files with 6 additions and 0 deletions

View File

@ -51,6 +51,12 @@ except IndexError:
formdef.fields = [
fields.PageField(id='1', type='page')
]
try:
formdef.data_class().wipe(drop=True)
except TypeError:
# drop=True not yet supported
pass
formdef.store() # this will clean the db
field_id = 1