Change Django Auth Group Ordering
Posted: May 17th, 2010 | Author: Arif Harbott | Filed under: Django | Tags: auth models, meta | No Comments »Following on from my last post on changing the behaviour of the Django contrib auth models. Another thing you might like to do is to change the default ordering:
from django.contrib.auth.models import User User._meta.ordering = ['-email']
or
from django.contrib.auth.models import Group Group._meta.ordering = ['-id']

Leave a Reply