summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--devel/models.py3
-rw-r--r--public/views.py3
2 files changed, 5 insertions, 1 deletions
diff --git a/devel/models.py b/devel/models.py
index ea0f4d5..f31b8fb 100644
--- a/devel/models.py
+++ b/devel/models.py
@@ -14,4 +14,7 @@ class MasterKey(models.Model):
created = models.DateTimeField()
revoked = models.DateTimeField(null=True, blank=True)
+ class Meta:
+ ordering = ('created',)
+
# vim: set ts=4 sw=4 et:
diff --git a/public/views.py b/public/views.py
index 95b590f..4051261 100644
--- a/public/views.py
+++ b/public/views.py
@@ -79,7 +79,8 @@ def feeds(request):
def keys(request):
context = {
- 'keys': MasterKey.objects.select_related('owner', 'revoker').all(),
+ 'keys': MasterKey.objects.select_related('owner', 'revoker',
+ 'owner__userprofile', 'revoker__userprofile').all(),
}
return direct_to_template(request, 'public/keys.html', context)