#2536: Mutually referential many-to-one relationship AddManipulator fails.
-------------------------+--------------------------------------------------
Reporter: anonymous | Owner: adrian
Status: new | Component: Database wrapper
Version: | Resolution:
Keywords: | Stage: Unreviewed
Has_patch: 0 | Needs_docs: 0
Needs_tests: 0 | Needs_better_patch: 0
-------------------------+--------------------------------------------------
Comment (by ramiro <rm0 _at_ gmx.net>):
Find attached a {{{models.py}}} file that contains six model pairs with
mutually referential many-to-one relationships. Every pair of models
modifies something trying to isolate the real cause. Conclusion: it seems
problem is related to the fact the FK name is equal to the related model
name but in lowercase (something already hinted by bmurdock in a comment
above).
Note that the doctest in the Child model creates a
{{{Child.AddManipulator}}} instance w/o getting any error but the
same instantiation leads to the reported traceback when the user is going
to create a {{{Child}}} instance in the Admin app.
--
Ticket URL: <http://code.djangoproject.com/ticket/2536#comment:10>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" 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-updates?hl=en
-~----------~----~----~----~------~----~------~--~---