diff --git a/photo21/templates/account/email.html b/photo21/templates/account/email.html index d7c472f..9329cab 100644 --- a/photo21/templates/account/email.html +++ b/photo21/templates/account/email.html @@ -18,7 +18,7 @@ SPDX-License-Identifier: GPL-2.0-or-later -
+
{% if user.emailaddress_set.all %}

{% trans 'The following e-mail addresses are associated with your account:' %}

diff --git a/photologue_custom/admin.py b/photologue_custom/admin.py index 895d534..41b967f 100644 --- a/photologue_custom/admin.py +++ b/photologue_custom/admin.py @@ -41,9 +41,10 @@ class PhotoAdmin(PhotoAdminDefault): if not hasattr(obj, 'extended'): return "No owner" return obj.extended.owner.username - get_owner.admin_order_field = 'owner' + get_owner.admin_order_field = 'owner' get_owner.short_description = _('owner') + admin.site.unregister(Gallery) admin.site.unregister(Photo) admin.site.unregister(PhotoEffect)