This commit is contained in:
j3d1 2024-05-02 22:53:13 +02:00
parent a39802b5bf
commit 6b47ebc50c
2 changed files with 4 additions and 1 deletions

View file

@ -10,5 +10,8 @@ class ExtendedUserAdmin(UserAdmin):
ordering = ('username',) ordering = ('username',)
filter_horizontal = ('groups', 'user_permissions', 'permissions') filter_horizontal = ('groups', 'user_permissions', 'permissions')
# def permissions(self, obj):
# return ', '.join(obj.get_all_permissions())
admin.site.register(ExtendedUser, ExtendedUserAdmin) admin.site.register(ExtendedUser, ExtendedUserAdmin)

View file

@ -21,7 +21,7 @@ async def telegram_notify(message, chat_id):
async def email_notify(message, email): async def email_notify(message, email):
mail = await make_notification(message, email) mail = make_notification(message, email)
await send_smtp(mail) await send_smtp(mail)