I was able to save a record like so...

Promotion.total_value=2000
Promotion.save()

However, I recently moveed the "total_value" field into another model
which has a OneToOne relationship with the Promotion Model.

Know I can access total_value like so:-

Promotion.competition.total_value
>> 2000

However, I can't work out how to save a different value to the field
using something like

Promotion.competition.total_value=3000

Can anybody please advice.

Cheers

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