I have a customer manipulator and I am trying to figure out during the
save function how to
get a foreign key pointer updated with a new value.

Here is my save function:

def save(self, new_data):

       print 'new_data is ', new_data
       new_status = new_data['status']
       newstatusid = int(new_status[len('choice')])
       r = Result(
            StatusId = newstatusid
       )

But, I get an type error message stating that StatusId needs to be a
class of the Status Table not an int value.

Can anyone tell me what is the best way to get the foreign key pointer
updated.

Thanks,
Jeff


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To post to this group, send email to [email protected]
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