Django

Code

Ticket #6926 (closed: fixed)

Opened 3 months ago

Last modified 3 months ago

newforms-admin ValidationError in BaseFormSet

Reported by: msundstr Assigned to: nobody
Milestone: Component: django.newforms
Version: newforms-admin Keywords:
Cc: Triage Stage: Accepted
Has patch: 1 Needs documentation: 0
Needs tests: 1 Patch needs improvement: 0

Description

The formset management_form is created with the passed-in prefix instead of self.prefix. This causes a ValidationError? (ManagementForm? data is missing or has been tampered with) when data or files is passed in, since in that case the management_form is created with self.prefix. This looks to be an oversight from a few revs back.

Attachments

formsets.diff (0.6 kB) - added by msundstr on 03/30/08 07:48:05.
path formsets.py to fix the ValidationError?

Change History

03/30/08 07:48:05 changed by msundstr

  • attachment formsets.diff added.

path formsets.py to fix the ValidationError?

03/30/08 11:47:54 changed by jkocherhans

  • needs_better_patch changed.
  • stage changed from Unreviewed to Accepted.
  • needs_tests set to 1.
  • needs_docs changed.

03/30/08 18:54:55 changed by jkocherhans

  • status changed from new to closed.
  • resolution set to fixed.

(In [7391]) newforms-admin: Fixed #6926. Formset management forms now use the proper prefix. Thanks, msundstr.


Add/Change #6926 (newforms-admin ValidationError in BaseFormSet)




Change Properties
Action