Friday, September 19, 2014

Re: Struggling with One to One relationships

Yes, this seems to be the usual problem with inheritance.

You need to do something scary like workshop_job.__dict__.update(job.__dict__) so that your workshop_job object will actually have all of the info from the job, like date_opened.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/6fbb336e-bd13-4e94-bbfd-88c7bbe4be32%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment