Re: OneToOneField and generic views

2005-09-09 Thread [EMAIL PROTECTED]
This seems to fix the problem, but I don't think this is a good solution. Hopefully this patch makes the issue a little clearer though: Index: django/views/generic/create_update.py === --- django/views/generic/create_update.py

OneToOneField and generic views

2005-09-09 Thread Joseph Kocherhans
The generic view django.views.create_update.update_object requires the object to have an id in line 99. manipulator = mod.ChangeManipulator(object.id) Objects with OneToOneFields don't have an id attribute. Instead they have something like "relatedobject_id" I'm not sure where this should be