If you have a form with empty_permitted=True (for example, an extra form in a formset) and that form has a datetime field defaulting to (timezone.)now, the form will fail always fail validation when you save.
The reason for this is that floppyforms' hidden input that is generated in this case includes microseconds - which django's hidden input (and the displayed input generated by both django and floppyforms) do not.
See https://code.djangoproject.com/ticket/22502 for original analysis.
If you have a form with
empty_permitted=True
(for example, an extra form in a formset) and that form has a datetime field defaulting to(timezone.)now
, the form will fail always fail validation when you save.The reason for this is that floppyforms' hidden input that is generated in this case includes microseconds - which django's hidden input (and the displayed input generated by both django and floppyforms) do not.
Example: