#6773: Confusing error when ForeignKey lookup fails while serializing
---------------------------------------------+------------------------------
Reporter: kcarnold | Owner: nobody
Status: new | Milestone:
Component: Serialization | Version: 1.0
Resolution: | Keywords: dumpdata
exception
Stage: Design decision needed | Has_patch: 0
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
---------------------------------------------+------------------------------
Changes (by ajitomatix):
* version: SVN => 1.0
Comment:
Even something as simple as the following is helpful to find out why the
exception is thrown.
{{{
raise self.model.DoesNotExist("%s matching query does not exist. args were
%s. Lookup parameters were %s"
% (self.model._meta.object_name, args, kwargs))
}}}
--
Ticket URL: <http://code.djangoproject.com/ticket/6773#comment:6>
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
-~----------~----~----~----~------~----~------~--~---