#13155: Iteration of a Many To Many Relationship raises Field Error
---------------------------------------------------+------------------------
          Reporter:  callen                        |         Owner:  nobody     
          
            Status:  closed                        |     Milestone:             
          
         Component:  Database layer (models, ORM)  |       Version:  1.1        
          
        Resolution:  duplicate                     |      Keywords:  m2m, orm, 
field error
             Stage:  Unreviewed                    |     Has_patch:  0          
          
        Needs_docs:  0                             |   Needs_tests:  0          
          
Needs_better_patch:  0                             |  
---------------------------------------------------+------------------------
Changes (by russellm):

  * status:  reopened => closed
  * resolution:  => duplicate

Comment:

 I'm going to call this a strange presentation of #10405.

 If I'm understanding the extremely verbose reproduction instructions, the
 root of this problem is a model that is referenced in a m2m that belongs
 to an app that isn't (due to some configuration problem) included in
 INSTALLED_APPS. Using shell_plus seems to change the way the problem
 manifests, but using similar conditions and a normal shell, I get "'str'
 object has no attribute '_default_manager'" errors, which is the
 presentation under #10405.

 I would also note that this particular error case is caught by manage.py
 validate. You can't use runserver, syncdb, or most of the other management
 commands without triggering a validation error if you have an m2m to a
 model in an app that isn't in INSTALLED_APPS.

 If I'm misunderstood the root cause here, a *terse* set of reproduction
 instructions -- preferably that doesn't involve shell_plus -- would be
 helpful.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/13155#comment:11>
Django <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.

Reply via email to