Complete processing pipeline for Signal
This commit is contained in:
43
core/views/ais.py
Normal file
43
core/views/ais.py
Normal file
@@ -0,0 +1,43 @@
|
||||
from django.contrib.auth.mixins import LoginRequiredMixin
|
||||
|
||||
from mixins.views import (
|
||||
ObjectCreate,
|
||||
ObjectDelete,
|
||||
ObjectList,
|
||||
ObjectUpdate,
|
||||
)
|
||||
|
||||
from core.forms import AIForm
|
||||
from core.models import AI
|
||||
from core.util import logs
|
||||
|
||||
log = logs.get_logger(__name__)
|
||||
|
||||
class AIList(LoginRequiredMixin, ObjectList):
|
||||
list_template = "partials/ai-list.html"
|
||||
model = AI
|
||||
page_title = "AIs"
|
||||
#page_subtitle = "Add times here in order to permit trading."
|
||||
|
||||
list_url_name = "ais"
|
||||
list_url_args = ["type"]
|
||||
|
||||
submit_url_name = "ai_create"
|
||||
|
||||
|
||||
class AICreate(LoginRequiredMixin, ObjectCreate):
|
||||
model = AI
|
||||
form_class = AIForm
|
||||
|
||||
submit_url_name = "ai_create"
|
||||
|
||||
|
||||
class AIUpdate(LoginRequiredMixin, ObjectUpdate):
|
||||
model = AI
|
||||
form_class = AIForm
|
||||
|
||||
submit_url_name = "ai_update"
|
||||
|
||||
|
||||
class AIDelete(LoginRequiredMixin, ObjectDelete):
|
||||
model = AI
|
||||
Reference in New Issue
Block a user