[patch] ReverseSingleRelatedObjectDescriptor should use limit_choices_to
|Reported by:||Owned by:||Adrian Holovaty|
|Component:||Database layer (models, ORM)||Version:||magic-removal|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
I have defined a ForeignKey with limit_choices_to for say "somefield".
Now, when I do:
the resulting query to the related object does not use this limitation. Shouldn't it do this?
I'm not absolutely sure on this, though, but would be very interested in the reasons if I'm wrong.