#13299: Handicapped objects passed to models signals during loaddata
------------------------------------+---------------------------------------
          Reporter:  patrys         |         Owner:  nobody  
            Status:  new            |     Milestone:          
         Component:  Documentation  |       Version:  1.2-beta
        Resolution:                 |      Keywords:          
             Stage:  Accepted       |     Has_patch:  0       
        Needs_docs:  0              |   Needs_tests:  0       
Needs_better_patch:  0              |  
------------------------------------+---------------------------------------
Changes (by russellm):

  * component:  Uncategorized => Documentation
  * stage:  Unreviewed => Accepted

Comment:

 The issue is that when you call loaddata, we are specifically saving only
 the attributes that are local to the model; if we don't do this, we get a
 bunch of extra objects created up the inheritance hierarchy. This is what
 the raw save does. As a consequence of this, we don't actually have access
 to the values for the parent fields at time of save.

 I think you're right that this may need to be a documentation fix; doing
 the database lookup to populate the parent fields will be expensive for
 anyone that doesn't need it.

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