Ruben, I think this is the same as
http://code.djangoproject.com/ticket/1939

It seems to be somewhat involved in the dirty areas of admin. I have for
now stopped thinking about it...

/ Mathias

Am Donnerstag, den 24.08.2006, 07:42 -0700 schrieb Ruben:
> Today I run into the same problem.
> -----------
> It's not necessarily your "to_party" attribute that is missing. I could
> vary the problem by using a Meta class with a unique_together option,
> and additionally, moving the "edit_inline" to my second ForeignKey:
> 
> class MyIntermediate(models.Model):
>       tar = models.ForeignKey(Foo, related_name="foo_1")
>       inherfrom = models.ForeignKey(Foo, edit_inline=True,
> related_name="foo_2")
>       type = models.PositiveSmallIntegerField(default=0, core=True)
> 
>       class Meta:
>               unique_together = (("tar","inherfrom"),)
> 
> The admin now raises no KeyError but an AttributeError:
> AttributeError at /admin/sim/biobj/add/
> 'AddManipulator' object has no attribute 'isUniquetar_inherfrom'
> 
> When I remove the class Meta either, or move the edit_inline to my
> first ForeignKey, I get exactly your Traceback with the KeyError.
> 
> Django Team, please point to a place where we can start to debug, or
> workaround.
> 
> Regards,
>  Ruben
> 
> 
> > 


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to