I ended up using the setattr method and, since I always know the data I have is a subset of the data in the model, that works wonderfully.
--Ray
----- Original Message -----
From: "euan.goddard@googlemail.com" <euan.goddard@gmail.com>
To: "Django users" <django-users@googlegroups.com>
Sent: Wednesday, June 30, 2010 10:01:11 AM GMT -05:00 US/Canada Eastern
Subject: Re: Proper approach to updating model object with 100 attributes.
--
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 django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
No comments:
Post a Comment