diff options
author | Dan McGee <dan@archlinux.org> | 2010-09-08 09:34:28 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2010-09-08 09:34:32 -0500 |
commit | 3491a022822f026ea8300b3eaa27eb76a767f02b (patch) | |
tree | ee7d77d53ce6ad7a25a03dbc7d94459d50486355 /main | |
parent | 5464ec55569de88182ced59283894ed7ddbe4fbf (diff) |
Remove explicit ordering from admin specs
The default ordering from the model itself will apply so no need to specify
it here as well.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'main')
-rw-r--r-- | main/admin.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/main/admin.py b/main/admin.py index 712cec80..923b962e 100644 --- a/main/admin.py +++ b/main/admin.py @@ -4,7 +4,6 @@ from django.contrib.auth.admin import UserAdmin from main.models import Arch, Donor, Package, Repo, UserProfile class DonorAdmin(admin.ModelAdmin): - ordering = ['name'] search_fields = ('name',) class RepoAdmin(admin.ModelAdmin): @@ -15,7 +14,6 @@ class RepoAdmin(admin.ModelAdmin): class PackageAdmin(admin.ModelAdmin): list_display = ('pkgname', 'repo', 'arch', 'last_update') list_filter = ('repo', 'arch') - ordering = ['pkgname'] search_fields = ('pkgname',) admin.site.unregister(User) |