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.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to