On 6/30/07, Dennis K. <[EMAIL PROTECTED]> wrote:
> The magic behind ManyToManyFields relies on all models (well, the
> models used in the relationship) being present in an appname.models
> module. When I did that, the thing magically worked.

Yeah, ORM lookups are implemented by descriptors which are added to
related classes when they're loaded.  And model classes are loaded by
django.db.model.loading.get_models, which do expect
appname.models.Model naming.

I just think it's a bug that it's not documented.  :)

--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to