From 920f07339a7e2f5d8e191cdf88fe399fe9c6d08f Mon Sep 17 00:00:00 2001 From: Alexandre Iooss Date: Fri, 15 Oct 2021 09:52:05 +0200 Subject: [PATCH] Remove trailing spaces --- photo21/templates/account/email.html | 2 +- photologue_custom/admin.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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)