Categorized: Django

Django Model Class Style Guide

  1. Any constants and/or lists of choices
  2. The full list of fields
  3. The Meta class, if present
  4. The __unicode__() method
  5. The save() method, if it’s being overridden
  6. The get_absolute_url() method, if present
  7. Any additional custom methods

Sources

Comments

Alex Gaynor → January 9th, 2009 at 4:00 pm
Trey → January 9th, 2009 at 4:36 pm

Thanks for the link, Alex. Added it to the post.

What do you think about that?

Elsewhere in the empire: Home, Blog, APOD