#5642: models.ForeignKey('unloaded class') raises AttributeError
-------------------------+--------------------------------------------------
Reporter:  Gregor_Kopka  |       Owner:  nobody                                 
       
  Status:  new           |   Component:  Core framework                         
       
 Version:  SVN           |    Keywords:  ForeignKey AttributeError 
db/models/options.py
   Stage:  Unreviewed    |   Has_patch:  1                                      
       
-------------------------+--------------------------------------------------
 using
     models.ForeignKey('undefined class')
 in model definition raises an Attribute error:

 File "/usr/lib/python2.4/site-packages/django/db/models/options.py", line
 156, in get_all_related_objects
     if f.rel and self == f.rel.to._meta:

 Using the attached patch the output will be:

 Error: One or more models did not validate:
 <reasonable error message>

-- 
Ticket URL: <http://code.djangoproject.com/ticket/5642>
Django Code <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