#11264: "from django.db import models" clobbered in functions inside 
__init__.py of
installed apps
-------------------------------------+--------------------------------------
          Reporter:  akaihola        |         Owner:  nobody   
            Status:  new             |     Milestone:           
         Component:  Core framework  |       Version:  SVN      
        Resolution:                  |      Keywords:  importing
             Stage:  Unreviewed      |     Has_patch:  0        
        Needs_docs:  0               |   Needs_tests:  0        
Needs_better_patch:  0               |  
-------------------------------------+--------------------------------------
Changes (by akaihola):

  * needs_better_patch:  => 0
  * needs_tests:  => 0
  * needs_docs:  => 0

Comment:

 Replying to [ticket:11264 akaihola]:

 Messed up the assertion error -- for `myapp` it's of course
 {{{
 AssertionError:
   models is <module 'myapp.models' from 'myapp/models.pyc'>
   instead of django.db.models
 }}}

 So what happens is that inside the function `models` points to the app's
 own `models.py` instead of `django.db.models`.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/11264#comment:1>
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 django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to