#11936: Proxy models' names are too long for django.contrib.auth which causes 
weird
test failures
---------------------------------------------------+------------------------
          Reporter:  ryszard                       |         Owner:  clamothe   
                
            Status:  new                           |     Milestone:             
                
         Component:  Database layer (models, ORM)  |       Version:  1.1        
                
        Resolution:                                |      Keywords:  test, 
only, deferred fields
             Stage:  Unreviewed                    |     Has_patch:  1          
                
        Needs_docs:  0                             |   Needs_tests:  0          
                
Needs_better_patch:  0                             |  
---------------------------------------------------+------------------------
Changes (by clamothe):

  * owner:  nobody => clamothe
  * has_patch:  0 => 1

Comment:

 I've attached a patch that solves the problem for me.  The patch applies
 cleanly against r11689, includes a regression test, and does not break the
 existing test suite.  The included regression test fails if the patch to
 loading.py is not applied.

 With the patch, the django.db.models.loading.get_models method will no
 longer return any deferred models.

 The patch doesn't change get_model, so the deferred models can still be
 accessed via the app cache if they're individually looked up (as with
 ModelBase.__new__).

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