#7823: ForeignKey get_db_prep_lookup doesn't work for custom primary key
---------------------------------------+------------------------------------
Reporter: isagalaev | Owner: mtredinnick
Status: new | Milestone:
Component: Database wrapper | Version: SVN
Resolution: | Keywords:
Stage: Unreviewed | Has_patch: 0
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
---------------------------------------+------------------------------------
Changes (by isagalaev):
* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0
Comment:
BTW... Looks like I'm missing something though. Field.get_db_prep_lookup
returns a list for exact lookup. However documentaion
(http://www.djangoproject.com/documentation/custom_model_fields/) shows an
example where get_db_prep_lookup returns single value. This is why there's
a check for isinstance(v, list) in the patch.
--
Ticket URL: <http://code.djangoproject.com/ticket/7823#comment:1>
Django Code <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
-~----------~----~----~----~------~----~------~--~---