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

Adding a checker for model styles #107

Open
franciscouzo opened this issue Feb 18, 2023 · 2 comments
Open

Adding a checker for model styles #107

franciscouzo opened this issue Feb 18, 2023 · 2 comments

Comments

@franciscouzo
Copy link

https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/coding-style/#model-style

Specifically the following part:

The order of model inner classes and standard methods should be as follows (noting that these are not all required):

  • All database fields
  • Custom manager attributes
  • class Meta
  • def __str__()
  • def save()
  • def get_absolute_url()
  • Any custom methods

I'm interested in writing this checker, but I wanted first to confirm if there would be interest in getting it merged.

@MHLut
Copy link

MHLut commented Mar 9, 2023

Isn't that DJ12?

@franciscouzo
Copy link
Author

franciscouzo commented Mar 10, 2023 via email

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

2 participants