Answer the question
In order to leave comments, you need to log in
deformation. Is it possible to post-process a form within the form itself?
Is it possible to attach a function to deform that provides postprocessing of the form.
form = get_form() # функция возвращающая экзепляр deform
appstruct = form.validate(request.POST.items()) # валидируем и получаем данные
Answer the question
In order to leave comments, you need to log in
As far as I remember, the scheme from the entire form is also ShemaNode, so the preparer must receive the entire appstruct
schema = Schema(preparer=my_preparer)
form = deform.Form(schema, buttons=('submit',))
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question