mirror of
https://github.com/postgres/pgweb.git
synced 2025-08-06 09:57:57 +00:00
Fix submission forms for many2many fields with checkboxes
This includes proper styling (no more centering of the checkbox itself) and actually saving the m2m fields on submit.
This commit is contained in:
@ -43,6 +43,8 @@ def simple_form(instancetype, itemid, request, formclass, formtemplate='base/for
|
||||
form.apply_submitter(r, request.user)
|
||||
r.save()
|
||||
|
||||
form.save_m2m()
|
||||
|
||||
return HttpResponseRedirect(redirect)
|
||||
else:
|
||||
# Generate form
|
||||
|
Reference in New Issue
Block a user