From 3491a022822f026ea8300b3eaa27eb76a767f02b Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Wed, 8 Sep 2010 09:34:28 -0500 Subject: 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 --- main/admin.py | 2 -- 1 file changed, 2 deletions(-) (limited to 'main') diff --git a/main/admin.py b/main/admin.py index 712cec8..923b962 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) -- cgit v1.2.3-24-g4f1b