Ticket #6089: unordered-auth-2.diff
File unordered-auth-2.diff, 981 bytes (added by , 17 years ago) |
---|
-
contrib/auth/models.py
96 96 class Meta: 97 97 verbose_name = _('group') 98 98 verbose_name_plural = _('groups') 99 ordering = ('name',)100 99 101 100 class Admin: 102 101 search_fields = ('name',) 102 ordering = ('name',) 103 103 104 104 def __unicode__(self): 105 105 return self.name … … 146 146 class Meta: 147 147 verbose_name = _('user') 148 148 verbose_name_plural = _('users') 149 ordering = ('username',)150 149 151 150 class Admin: 152 151 fields = ( … … 159 158 list_display = ('username', 'email', 'first_name', 'last_name', 'is_staff') 160 159 list_filter = ('is_staff', 'is_superuser') 161 160 search_fields = ('username', 'first_name', 'last_name', 'email') 161 ordering = ('username',) 162 162 163 163 def __unicode__(self): 164 164 return self.username