#15068: initial_data fixtures using natural keys fail in tests with multiple
databases
---------------------------+------------------------------------------------
 Reporter:  dcramer        |       Owner:  nobody    
   Status:  new            |   Milestone:            
Component:  Uncategorized  |     Version:  1.2       
 Keywords:                 |       Stage:  Unreviewed
Has_patch:  0              |  
---------------------------+------------------------------------------------
 If a fixture using natural keys is referenced before that database is
 created (in tests), then the fixture fails to load due to a "table does
 not exist" error (though may also throw database does not exist, since it
 may not have been created yet).

 The reason for this is that objects are instantiated before they are
 actually created in the database, but they mapper only does this if
 they're not using natural keys. In the case where they are, it attempts to
 look them up from the database, rather than the existing in-memory
 instances.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/15068>
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 [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