I follow the rules on this page for my models (and other files/code):
<https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/coding-style/>
But are what about the admin.py file?
Sometimes my admin classes can get pretty cluttery (form,
display_on_top, prepopulated_fields, filter_horizontal, fieldsets,
methods, other).
Do any of ya'll have any tips on keeping the admin classes organized
and readable?
Thanks!
Micky
How's this for organization(?):
<https://gist.github.com/1224591>
I guess I am curious how other folks would go about organizing things. :)
Thanks!
Micky
Bare bones example:
<https://gist.github.com/1224591#file_admin_template.py>
Note on comments:
Trying to follow similar guidelines for comments as found here:
I have always liked that style of "Section separators".