From f1e4cbff11096e50a2b3842d2c7d2b5df71741b1 Mon Sep 17 00:00:00 2001 From: jedi Date: Thu, 2 May 2024 22:53:13 +0200 Subject: [PATCH] stash --- core/authentication/admin.py | 3 +++ core/mail/notifications.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/core/authentication/admin.py b/core/authentication/admin.py index 0024cb0..dfb4d20 100644 --- a/core/authentication/admin.py +++ b/core/authentication/admin.py @@ -10,5 +10,8 @@ class ExtendedUserAdmin(UserAdmin): ordering = ('username',) filter_horizontal = ('groups', 'user_permissions', 'permissions') +# def permissions(self, obj): +# return ', '.join(obj.get_all_permissions()) + admin.site.register(ExtendedUser, ExtendedUserAdmin) diff --git a/core/mail/notifications.py b/core/mail/notifications.py index 082183d..4c40fb2 100644 --- a/core/mail/notifications.py +++ b/core/mail/notifications.py @@ -21,7 +21,7 @@ async def telegram_notify(message, chat_id): async def email_notify(message, email): - mail = await make_notification(message, email) + mail = make_notification(message, email) await send_smtp(mail)