Refactor and add base USD and withdrawal triggers
This commit is contained in:
@@ -6,7 +6,6 @@ from mixins.views import (
|
||||
ObjectCreate,
|
||||
ObjectDelete,
|
||||
ObjectList,
|
||||
ObjectRead,
|
||||
ObjectUpdate,
|
||||
)
|
||||
from two_factor.views.mixins import OTPRequiredMixin
|
||||
@@ -14,9 +13,9 @@ from two_factor.views.mixins import OTPRequiredMixin
|
||||
from core.clients.platforms.agora import AgoraClient
|
||||
from core.forms import AdForm
|
||||
from core.models import Ad
|
||||
from core.util import logs
|
||||
from core.views.helpers import synchronize_async_helper
|
||||
|
||||
|
||||
class AdNuke(LoginRequiredMixin, OTPRequiredMixin, View):
|
||||
template_name = "mixins/partials/notify.html"
|
||||
|
||||
@@ -30,6 +29,7 @@ class AdNuke(LoginRequiredMixin, OTPRequiredMixin, View):
|
||||
context = {"class": "success", "message": "Nuking ads"}
|
||||
return render(request, self.template_name, context)
|
||||
|
||||
|
||||
class AdDist(LoginRequiredMixin, OTPRequiredMixin, View):
|
||||
template_name = "mixins/partials/notify.html"
|
||||
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
from django.contrib.auth.mixins import LoginRequiredMixin
|
||||
from django.http import HttpResponse
|
||||
from django.shortcuts import render
|
||||
from django.urls import reverse
|
||||
from django.views import View
|
||||
from mixins.views import ( # ObjectRead,
|
||||
ObjectCreate,
|
||||
ObjectDelete,
|
||||
|
||||
Reference in New Issue
Block a user