After upgrading from 3.8 -> 3.9 I've encountered an issue with the new limit_choices_to foreign key changes.
filter() argument after ** must be a mapping, not Q
It seems the issue was documented in the original merge and a fix was proposed but I can't find an existing PR that has addressed it - nor does the proposed fix exist in master
https://github.com/encode/django-rest-framework/pull/6371#issuecomment-455626461
master branch of Django REST framework.model with FK that contains a limit_choices_to with Q object reference ( instead of Dictionary)
no errors, code works as expected if a dictionary is passed instead
error thrown,
filter() argument after ** must be a mapping, not Q
Okay - we'd happily consider a pull request based on https://github.com/usetaptap/django-rest-framework/commit/607059def41dcf8563979629514c3b8d31f0f3d2
Most helpful comment
Okay - we'd happily consider a pull request based on https://github.com/usetaptap/django-rest-framework/commit/607059def41dcf8563979629514c3b8d31f0f3d2