summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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',)