summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-09-08 09:34:28 -0500
committerDan McGee <dan@archlinux.org>2010-09-08 09:34:32 -0500
commit3491a022822f026ea8300b3eaa27eb76a767f02b (patch)
treeee7d77d53ce6ad7a25a03dbc7d94459d50486355
parent5464ec55569de88182ced59283894ed7ddbe4fbf (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>
-rw-r--r--main/admin.py2
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)