Skip to content

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

@jvacek jvacek changed the title Add DJ26 and DJ27 Add equivalent rules for DRF (DJ26 and DJ27) Sep 3, 2025
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