I have used sessions to store the initial db record so that when I go into
my form I retrieve the value
such as

stationrec = request.session['stationrec']

On Thu, May 13, 2010 at 9:36 AM, zweb <traderash...@gmail.com> wrote:

> I am using a model form to edit (change) an exisiting row in db.
>
> in clean_xxx() method I want to compare the old (existing) value
> versus new value.
>
> I can get new value from cleaned_data.
>
>
> How do I get the old (existing) value?
>
> If I do a db query to get the existing row from DB how do I get the PK
> as it is not a form field.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to