wagtail-form-example icon indicating copy to clipboard operation
wagtail-form-example copied to clipboard

Include example code to edit existing form submission

Open xc0m opened this issue 7 years ago • 0 comments

Hi There,

I was hoping you could include some code to allow existing entries to be edited using the same form. Previously when using Django natively I would use something like:

instance = get_object_or_404(MyModel, id=id) form = MyForm(request.POST or None, instance=instance)

Appreciate the help! Thanks Tyler

xc0m avatar Jan 15 '19 09:01 xc0m