update
This commit is contained in:
parent
5b703d776c
commit
628e9b9533
@ -22,9 +22,13 @@ def fetch(request):
|
||||
'email': [],
|
||||
}
|
||||
for user in CustomUser.objects.filter(is_active=True):
|
||||
if user.vk_id:
|
||||
platform_staff['vk_id'].append(user.vk_id)
|
||||
if user.yandex_id:
|
||||
platform_staff['yandex_id'].append(user.yandex_id)
|
||||
if user.telegram_id:
|
||||
platform_staff['telegram_id'].append(user.telegram_id)
|
||||
if user.email:
|
||||
platform_staff['email'].append(user.email)
|
||||
return JsonResponse(
|
||||
data={
|
||||
|
Loading…
Reference in New Issue
Block a user