#13335: Revision 12950 crashes complex interdependent models in directory
---------------------------------------------------+------------------------
          Reporter:  haras                         |         Owner:  nobody
            Status:  new                           |     Milestone:  1.2   
         Component:  Database layer (models, ORM)  |       Version:  SVN   
        Resolution:                                |      Keywords:        
             Stage:  Accepted                      |     Has_patch:  1     
        Needs_docs:  0                             |   Needs_tests:  1     
Needs_better_patch:  0                             |  
---------------------------------------------------+------------------------
Comment (by haras):

 Replying to [comment:8 kmtracey]:
 > Not that it really matters, but why are your models modules importing
 admin modules? That's (part of) the crux of the problem that is leading to
 a circular import, and is generally not necessary. Admin modules are
 certainly dependent on the models, but the reverse dependence seems a bit
 unusual.

 in other case admin models are not visible in admin panel
 I partially solved circular import problem with importing admin model at
 the end of file with models, not at the beginning, it seems odd, but it
 works :}

 I have to admit that I forgot about method I use in models case, adding
 admin models imports to admin/__init__.py and then relaying on admin
 autodiscover,

 Yes this solves problem
 I removed all
 {{{ from ..admin import module }}}

 and it does not breaks at this revision anymore,
 moreover I updated to HEAD - most recent one, from svn and there is no
 longer any problem

 I have to apologize for posting this problem, but this revision breaks (or
 fixes) inappropriate method used by me

-- 
Ticket URL: <http://code.djangoproject.com/ticket/13335#comment:9>
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-upda...@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