Opened 17 years ago

Closed 15 years ago

Last modified 15 years ago

#11404 closed New feature (fixed)

add has_changed() method to formsets

Reported by: anonymous Owned by: nobody
Component: Forms Version: 1.0
Severity: Normal Keywords: formset
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

both formsets and forms have .is_valid()
but only forms have .has_changed()
it would be nice if formsets had it too

Attachments (2)

formset-has-changed.diff​ (620 bytes ) - added by Dennis Kaarsemaker 17 years ago.
formset-has-changed-2.diff​ (3.9 KB ) - added by Michel Sabchuk 15 years ago.
Patch updated to Django 1.3 with tests and docs.

Download all attachments as: .zip

Change History (9)

comment:1 by anonymous, 17 years ago

Component: Uncategorized → Forms
Keywords: formset added
Triage Stage: Unreviewed → Someday/Maybe

by Dennis Kaarsemaker, 17 years ago

Attachment: formset-has-changed.diff​ added

comment:2 by Dennis Kaarsemaker, 17 years ago

Has patch: set
Triage Stage: Someday/Maybe → Unreviewed

Patch attached.

comment:3 by Alex Gaynor, 17 years ago

Triage Stage: Unreviewed → Accepted

comment:4 by Matthias Kestenholz, 16 years ago

Needs documentation: set
Needs tests: set

comment:5 by Julien Phalip, 16 years ago

Severity: → Normal
Type: → New feature

by Michel Sabchuk, 15 years ago

Attachment: formset-has-changed-2.diff​ added

Patch updated to Django 1.3 with tests and docs.

comment:6 by Mark Lavin, 15 years ago

Easy pickings: unset
Needs documentation: unset
Needs tests: unset
Triage Stage: Accepted → Ready for checkin
UI/UX: unset

The latest patch has tests and docs. It applies cleanly for me on the latest trunk and all the tests pass. This looks ready for check-in to me.

comment:7 by Alex Gaynor, 15 years ago

Resolution: → fixed
Status: new → closed

In [16773]:

Fixed #11404. Added FormSet.has_changed, for consistancy with Form.has_changed. Thanks to michelts for the patch.

Note: See TracTickets for help on using tickets.
Back to Top