On Tue, Aug 26, 2008 at 9:49 PM, ydjango <[EMAIL PROTECTED]> wrote: > > Does django marks the user changed fields in form dirty in any way? > old versus new or a flag maybe. > > Is there an easy way to check which fields user changed in form > submission or > > do I need to save previous values in request and then compare each > field. >
I don't believe it's documented, but Forms have a changed_data property that returns a list of fields that have changed (that is, that differ from the initial values defined for the form). The admin uses this to implement the change history log. Karen --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---