I have a model called REWARD, which has a one-to-one relationship with a 
model called PROMOTION

I seem to be able to access the attributes of REWARD via PROMOTIONS but 
I can't seem to update them.

promo=Promotion.objects.get(id=10)
promo.reward.user_visits
 >> 10L  

However:-
promo.reward.user_visits=12   #  This does not work.
promo.reward.user_visits
 >> 10L


What am I missing? I was sure that this was working in a previous 
incarnation, but not any more. Has something changed?

MerMer

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to