So, I have a Client model that includes an instance field instance = models.ForeignKey(TugInstance)
When my form is submitted, I am assigning client.instance = form.clean_data['instance_id'] But this isn't working. I get an error on save() that 'instance_id' cannot be NULL. If I change my code to client.instance_id = , then it works. But, according to this page http://www.djangoproject.com/documentation/model-api/#relationships the _id is supposed to be transparent. Did I do something wrong? Mike --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---