#1796: [patch] "Cannot resolve keyword ___ into field" error when working with
ManyToMany relation
------------------------------+---------------------------------------------
Reporter: anonymous | Owner: adrian
Type: defect | Status: new
Priority: high | Milestone:
Component: Database wrapper | Version: SVN
Severity: critical | Resolution:
Keywords: |
------------------------------+---------------------------------------------
Comment (by [EMAIL PROTECTED]):
Ok.. It looks like '''multiple''' 'Options' objects were getting created.
Once when the model was imported and again when a person object was
retrieved (it called get_models() in django.db.models.loading package.
When the get_all_related_many_to_many_objects() was called in
django.db.models.options package, the test 'self == f.rel.to._meta' (line:
155) failed, so the relation wasn't setup properly.
The above patch calls the get_models() before starting the interpreter so
there aren't any inconsistencies.
--
Ticket URL: <http://code.djangoproject.com/ticket/1796>
Django <http://code.djangoproject.org/>
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
-~----------~----~----~----~------~----~------~--~---