Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upProblem with SearchFilter and JSONFields #7200
Open
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


There is a problem with SearchFilter and JSONFields.
When I add json key to search_fields (json_field__key) I got exception:
django.core.exceptions.FieldDoesNotExist: Model has no field named 'field_name'Exception comes from
SearchFilterclass andmust_call_distinctmethod.I made quick fix by overriding
must_call_distinctmethod but it's not a perfect solution.