Re: forms: get_changed_data(): Remember old values

2014-04-24 Thread Claude Paroz
Le jeudi 24 avril 2014 15:10:20 UTC+2, guettli a écrit : > > Hello, > > I want to improve this method: > > django/forms/forms.py: Form.get_changed_data() > There are no get_changed_data() method currently, I suppose you meant Form.changed_data (property). > > I need to have access to the old

forms: get_changed_data(): Remember old values

2014-04-24 Thread Thomas Güttler
Hello, I want to improve this method: django/forms/forms.py: Form.get_changed_data() I need to have access to the old data, and would like to have a triple list like this: (field_name, old_value, new_value) Code: https://github.com/django/django/blob/master/django/forms/forms.py#L415 My cur