ForeignObject/ForeignKey does not obey lookup registration API
ForeignObject
's implementation of get_lookup
and get_transform
causes register_lookup
to essentially have no effect.
The PR should allow users to successfully register lookups while ignoring the default lookups registered to Field
. This works by duplicating RegisterLookupMixin._get_lookup
, but stopping mro walking at ForeignObject
.
https://github.com/django/django/pull/6906
Change History
(5)
Cc: |
rpkilby@… added
|
Description: |
modified (diff)
|
Triage Stage: |
Unreviewed → Accepted
|
Resolution: |
→ fixed
|
Status: |
new → closed
|
In 7aeb7390: