Remove trailing spaces

This commit is contained in:
Alexandre Iooss 2021-10-15 09:52:05 +02:00
parent 47cb6294ad
commit 920f07339a
2 changed files with 3 additions and 2 deletions

View file

@ -18,7 +18,7 @@ SPDX-License-Identifier: GPL-2.0-or-later
</li> </li>
</ul> </ul>
</div> </div>
<div class="card-body"> <div class="card-body">
{% if user.emailaddress_set.all %} {% if user.emailaddress_set.all %}
<p>{% trans 'The following e-mail addresses are associated with your account:' %}</p> <p>{% trans 'The following e-mail addresses are associated with your account:' %}</p>

View file

@ -41,9 +41,10 @@ class PhotoAdmin(PhotoAdminDefault):
if not hasattr(obj, 'extended'): if not hasattr(obj, 'extended'):
return "No owner" return "No owner"
return obj.extended.owner.username return obj.extended.owner.username
get_owner.admin_order_field = 'owner' get_owner.admin_order_field = 'owner'
get_owner.short_description = _('owner') get_owner.short_description = _('owner')
admin.site.unregister(Gallery) admin.site.unregister(Gallery)
admin.site.unregister(Photo) admin.site.unregister(Photo)
admin.site.unregister(PhotoEffect) admin.site.unregister(PhotoEffect)