-
Notifications
You must be signed in to change notification settings - Fork 583
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
fix: Remove user from autocomplete fields if (swapped) user model does not have search fields #1517
base: master
Are you sure you want to change the base?
Conversation
…s not have search fields
Reviewer's Guide by SourceryThis pull request addresses issue #1478 by removing the No diagrams generated as the changes look simple and do not need a visual representation. File-Level Changes
Assessment against linked issues
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @fsbraun - I've reviewed your changes - here's some feedback:
Overall Comments:
- Consider adding a test case to ensure the
autocomplete_fields
are correctly updated when the user model lackssearch_fields
.
Here's what I looked at during the review
- 🟢 General issues: all looks good
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
…chfield' into fix/user-model-searchfield
fa521a6
to
859db85
Compare
Description
This PR fixes #1478. The
user
field is dropped fromautocomplete_fields
if the user model does not definesearch_fields
.Related resources
ModelAdmin
must define "search_fields", #1478Checklist
master
Slack to find a “pr review buddy” who is going to review my pull request.
Summary by Sourcery
Fixes an issue where the user field was not dropped from autocomplete_fields when the user model did not define search_fields. Also adds virus check for binary files without a specific mime type.
Bug Fixes: