Categorized: Django
Django Model Class Style Guide
- Any constants and/or lists of choices
- The full list of fields
- The
Metaclass, if present - The
__unicode__()method - The
save()method, if it’s being overridden - The
get_absolute_url()method, if present - Any additional custom methods
Sources
- Practical Django Projects p. 62 (pre-1.0 old admin stuff omitted)
- Django Documentation
Comments
This is also in the Django docs: http://docs.djangoproject.com/en/dev/internals/contributing/#model-style
Thanks for the link, Alex. Added it to the post.
What do you think about that?