#8248: Built-in python function, help(), does not work on models with ForeignKey
fields
-------------------------------------+--------------------------------------
          Reporter:  lingrlongr      |         Owner:                           
  
            Status:  new             |     Milestone:  1.0                      
  
         Component:  Core framework  |       Version:  SVN                      
  
        Resolution:                  |      Keywords:  help ForeignKey foreign 
key
             Stage:  Accepted        |     Has_patch:  0                        
  
        Needs_docs:  0               |   Needs_tests:  0                        
  
Needs_better_patch:  0               |  
-------------------------------------+--------------------------------------
Comment (by msaelices):

 The error is due to {{{inspect}}} python builtin module. When this module
 introspect model class with a ForeignKey, try to get field without passing
 a instance.

 Django related fields raises an {{{AttributeError}}} and inspect module
 pass this error and only write class name.

 Problem is that fix is backwards incompatible, and also changes behaviour
 in models. I will attach a patch thats fixes problem, but I'm not sure if
 is a good idea commit this ;-)

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