mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 06:42:16 +00:00
Initial work in bringing celery into Auth
This commit is contained in:
@@ -4,11 +4,11 @@ Admin interface models. Automatically detected by admin.autodiscover().
|
||||
from django.contrib import admin
|
||||
from eve_api.models import *
|
||||
|
||||
from eve_api.api_puller.accounts import import_eve_account
|
||||
from eve_api.tasks import import_apikey
|
||||
|
||||
def account_api_update(modeladmin, request, queryset):
|
||||
for obj in queryset:
|
||||
import_eve_account(obj.api_key, obj.api_user_id)
|
||||
import_apikey.delay(api_key=obj.api_key, api_userid=obj.api_user_id)
|
||||
|
||||
account_api_update.short_description = "Update account from the EVE API"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user