summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDusty Phillips <buchuki@gmail.com>2008-11-15 15:42:33 -0500
committerDusty Phillips <buchuki@gmail.com>2008-11-15 15:42:33 -0500
commit0dbde37b205694d8d86306557e132b2ee8eb9999 (patch)
tree8e22c73c99ba445ea7d47486341c00dee208a46c
parent2f9d725b022e869407e4dbc5f705594db1d15e11 (diff)
alphabetical order on maintainers and packages
-rw-r--r--devel/views.py2
-rw-r--r--main/models.py1
2 files changed, 2 insertions, 1 deletions
diff --git a/devel/views.py b/devel/views.py
index e16e8495..1b8aa384 100644
--- a/devel/views.py
+++ b/devel/views.py
@@ -14,7 +14,7 @@ def index(request):
'repos': Repo.objects.all(), 'arches': Arch.objects.all(),
'maintainers': [
User(id=0, username="orphan", first_name="Orphans")
- ] + list(User.objects.filter(is_active=True))
+ ] + list(User.objects.filter(is_active=True).order_by('username'))
}
return render_to_response('devel/index.html',
diff --git a/main/models.py b/main/models.py
index 8123d074..d48aa364 100644
--- a/main/models.py
+++ b/main/models.py
@@ -144,6 +144,7 @@ class Package(models.Model):
objects = PackageManager()
class Meta:
db_table = 'packages'
+ ordering = ('pkgname',)
#get_latest_by = 'last_update'
#ordering = ('-last_update',)