mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-16 16:00:17 +02:00
Merge branch 'features/kick-from-discord-admin' into 'master'
Add override to delete the user from discord itself See merge request allianceauth/allianceauth!1337
This commit is contained in:
commit
5b26757662
@ -30,5 +30,10 @@ class DiscordUserAdmin(ServicesUserAdmin):
|
|||||||
else:
|
else:
|
||||||
return ''
|
return ''
|
||||||
|
|
||||||
|
|
||||||
|
def delete_queryset(self, request, queryset):
|
||||||
|
for user in queryset:
|
||||||
|
user.delete_user()
|
||||||
|
|
||||||
_username.short_description = 'Discord Username'
|
_username.short_description = 'Discord Username'
|
||||||
_username.admin_order_field = 'username'
|
_username.admin_order_field = 'username'
|
Loading…
x
Reference in New Issue
Block a user