ModelAdmin: Unsupported lookup 'icontains' for ForeignKey or join on the field not permitted. #28
Labels
status:Unconfirmed
Issue, usually a bug, that has not yet been validated as a confirmed problem.
type:Bug
Something isn't working
Issue Summary
When using model admin, if you have search_fields, and one of the fields is a foreign key, it raises the subject error:
Steps to Reproduce
Any other relevant information. For example, why do you consider this a bug and what did you expect to happen instead?
Because it should be warned or considered in Wagtail, or consider in documentation how to refer to the foreign key str representation or an attribute of the foreign key.
Technical details
python --version
. 3.11.3pip show django | grep Version
. 4.2.1pip show wagtail | grep Version:
. 5.0The text was updated successfully, but these errors were encountered: