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 DJ26 and DJ27 #148

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Add DJ26 and DJ27 #148

wants to merge 5 commits into from

Conversation

jvacek
Copy link

@jvacek jvacek commented Nov 22, 2024

Fixes #147

Hey @rocioar !

I've implemented the issue I just raised, tried to give the task to Cursor AI and it came up with this solution. Raked over it a bit to fix it up, seems like it's doing what it should.

I made sure to avoid being DRY for the checker file, as these might want to move independently.

Let me know what you think :)

Comment on lines +51 to +52
| [`DJ26`](https://github.com/rocioar/flake8-django/wiki/%5BDJ26%5D-Do-not-use-exclude-with-ModelSerializer,-use-fields-instead) | Do not use exclude with ModelSerializer, use fields instead |
| [`DJ27`](https://github.com/rocioar/flake8-django/wiki/%5BDJ27%5D-Do-not-use-__all__-with-ModelSerializer,-use-fields-instead) | Do not use `__all__` with ModelSerializer, use fields instead |
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will need to be adjusted ofc

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.

DRF versions of DJ06 and DJ07
1 participant