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

Add setting to fine-tune admin search fields #1035

Closed
wants to merge 1 commit into from

Conversation

atugushev
Copy link

@atugushev atugushev commented Oct 6, 2016

One day i needed to configure search fields of UserSocialAuth like this:

search_fields = ['=user__id', '^user__email', '=uid']

I found the setting ADMIN_USER_SEARCH_FIELDS, but it was very limited. It does not allow to do restrictive searches, using by prefix the field name with an operator.

Also, since the setting has related to User model, you can't search by the other models fields.

I've added new setting ADMIN_SEARCH_FIELDS. Please, review!

@omab omab force-pushed the master branch 2 times, most recently from 1078c07 to de9f179 Compare December 3, 2016 14:23
@omab
Copy link
Owner

omab commented Dec 4, 2016

I've ported this PR into social-app-django.

Thanks!

@omab omab closed this Dec 4, 2016
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

Successfully merging this pull request may close these issues.

2 participants