From: Magnus Hagander Date: Wed, 4 Mar 2009 09:15:30 +0000 (+0100) Subject: Sort admin list of repos by approved first, and show if the repos are approved X-Git-Url: http://git.postgresql.org/gitweb/static/benefitdownload/file?a=commitdiff_plain;h=89076c54cef7cb48cc209d693fa7c48ca128fed9;p=pggit.git Sort admin list of repos by approved first, and show if the repos are approved or not in the list. This will make it possible to use the admin interface for all admin operations... --- diff --git a/gitadmin/adm/admin.py b/gitadmin/adm/admin.py index b715f77..1676c97 100644 --- a/gitadmin/adm/admin.py +++ b/gitadmin/adm/admin.py @@ -1,7 +1,11 @@ from django.contrib import admin from gitadmin.adm.models import * +class RepositoryAdmin(admin.ModelAdmin): + list_display = ('name','approved') + ordering = ('approved', 'name') + admin.site.register(RepositoryPermission) -admin.site.register(Repository) +admin.site.register(Repository, RepositoryAdmin) admin.site.register(RemoteRepository)