This includes proper styling (no more centering of the checkbox itself)
and actually saving the m2m fields on submit.
vertical-align: top;
}
-TABLE.pgGenericFormTable TR TD INPUT,
+TABLE.pgGenericFormTable TR TD INPUT:not([type='checkbox']),
TABLE.pgGenericFormTable TR TD SELECT,
TABLE.pgGenericFormTable TR TD TEXTAREA,
TABLE.pgGenericFormTable TR TD DIV.markdownpreview {
max-width: 300px;
}
+TABLE.pgGenericFormTable TR TD UL {
+ list-style-type: none;
+}
+
/* Misc Classes */
.pgClearBoth {
form.apply_submitter(r, request.user)
r.save()
+ form.save_m2m()
+
return HttpResponseRedirect(redirect)
else:
# Generate form