#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 kmtracey):
OK, this last problem is straightforward circular import bug in the app that was mistakenly hidden by the pre-r12950 behavior of blindly swallowing import errors on an attempt to load an app's models. The right fix for that is to remove the circular import in the app, which from the comments above I gather has been done successfully. While removing all the ..admin imports from models modules may have also resolved the original problem described in this ticket, the report did bring to light that the r12950 code does not correctly handle import errors resulting from nested calls to load_app, so the fix in the patch is still necessary. Just need to add a test first.... -- Ticket URL: <http://code.djangoproject.com/ticket/13335#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 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.