#9218: KeyError in validate_unique when primary_key is in fields and it's empty
in
form
-----------------------------------------------+----------------------------
Reporter: romke <[EMAIL PROTECTED]> | Owner: kmtracey
Status: assigned | Milestone:
Component: Forms | Version: SVN
Resolution: | Keywords: KeyError,
validate_unique, custom primary_key
Stage: Accepted | Has_patch: 1
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
-----------------------------------------------+----------------------------
Changes (by kmtracey):
* owner: nobody => kmtracey
* status: new => assigned
Comment:
Minor, but the attached patch uses 2-space indents while the rest of the
code in the file uses 4-space -- in the future please code patches in the
style of the surrounding code.
This error was actually fixed by the fix for #9039 but that fix didn't use
the simpler-code get approach suggested above. I'll fix that and add a
test for this to ensure it doesn't get broken again in the future.
--
Ticket URL: <http://code.djangoproject.com/ticket/9218#comment:8>
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
-~----------~----~----~----~------~----~------~--~---