diff --git a/src/accounts/templates/accounts/user_detail.html b/src/accounts/templates/accounts/user_detail.html
index 66cd3dd..c7ce67c 100644
--- a/src/accounts/templates/accounts/user_detail.html
+++ b/src/accounts/templates/accounts/user_detail.html
@@ -24,6 +24,14 @@
{% endifequal %}
+ {% if request.user.is_active %}
+
+ {% for email in request.user.emails.iterator %}
+ - {{ email.address }}
+ {% endfor %}
+
+
+ {% endif %}
{% if user_.institution or user_.role %}
diff --git a/src/super_archives/models.py b/src/super_archives/models.py
index 5d0fb94..dd76062 100644
--- a/src/super_archives/models.py
+++ b/src/super_archives/models.py
@@ -41,6 +41,9 @@ class EmailAddress(models.Model):
real_name = models.CharField(max_length=64, blank=True, db_index=True)
md5 = models.CharField(max_length=32, null=True)
+ class Meta:
+ ordering = ('id', )
+
def save(self, *args, **kwargs):
self.md5 = md5(self.address).hexdigest()
super(EmailAddress, self).save(*args, **kwargs)
--
libgit2 0.21.2