Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Official Django docs do NOT say the `class Meta` comes __immediately__ after the fields.

The docs give the example (as linked by you) looking like that, but few chapters down you can find this:

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

...



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: