Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show only the operators that I need #54

Open
alejandrojnm opened this issue Oct 31, 2019 · 2 comments
Open

Show only the operators that I need #54

alejandrojnm opened this issue Oct 31, 2019 · 2 comments

Comments

@alejandrojnm
Copy link

alejandrojnm commented Oct 31, 2019

It is possible to only show the operators that I need, example field.other_field and for this only show < and >

@stebunovd
Copy link
Member

I'm afraid it is not supported at the moment... Could you please tell more about your use case, maybe we can consider it as a feature request

@suleimanmahmoud
Copy link

suleimanmahmoud commented Feb 24, 2022

+1 to this

Would also appreciate this to only allow certain types of operators on some django admin pages, and if possible also on a per field basis. Examples:

  • On a given page, if you selected the field "id", you would only be allowed to search using "=" or "in".
  • On another page, it could be more generic, independently of the field, only display and allow searches with certain operators, say ">", "<", "=" and "in"

Reason for restricting a bit the behavior is to reduce load on queries, so reduce functionality to improve performance on some specific pages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants