As we are regularising the model syntax, here is a question,

Should

class Whatever(meta.Model):
      name = meta.CharField(maxlength=100)
      class META:
         admin = meta.Admin(
                list_display = ('username', 'email',
                        'first_name','last_name', 'is_staff'),
                list_filter = ('is_staff', 'is_superuser'),)
         ordering = [-'order_date']

change to:

class Whatever(Model):
        name = CharField(maxlength=100)
        class ADMIN:
                list_display = ('username', 'email',
                        'first_name','last_name', 'is_staff'),
                list_filter = ('is_staff', 'is_superuser'),)
        class META:
                ordering = [-'order_date']

(ignoring the broken list_display etc)

Basically, promote Admin settings to a full inner class, rather than
nesting it in meta. It would still end up in meta though.

Thoughts?

Reply via email to