#6773: Confusing error when ForeignKey lookup fails while serializing
---------------------------------------------+------------------------------
          Reporter:  kcarnold                |         Owner:  googol           
 
            Status:  assigned                |     Milestone:                   
 
         Component:  Serialization           |       Version:  SVN              
 
        Resolution:                          |      Keywords:  dumpdata 
exception
             Stage:  Design decision needed  |     Has_patch:  0                
 
        Needs_docs:  0                       |   Needs_tests:  0                
 
Needs_better_patch:  0                       |  
---------------------------------------------+------------------------------
Changes (by googol):

  * owner:  nobody => googol
  * status:  new => assigned

Comment:

 or add even more valuable information - like the table name:

             raise self.model.DoesNotExist("%s matching query does not
 exist. Table name: %s. Args were %s. Lookup parameters were %s"
                     % (self.model._meta.object_name,
 self.model._meta.db_table, args, kwargs))

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