Begin implementing positions

This commit is contained in:
2022-10-17 07:20:30 +01:00
parent 5279217324
commit 1bdd49ee6a
17 changed files with 452 additions and 28 deletions

View File

@@ -1,17 +1,14 @@
import uuid
import orjson
from django.contrib.auth.mixins import LoginRequiredMixin
from django.http import HttpResponse, HttpResponseBadRequest
from django.http import HttpResponseBadRequest
from django.shortcuts import render
from django.views import View
from rest_framework.parsers import FormParser, JSONParser
from rest_framework.parsers import FormParser
from rest_framework.views import APIView
from serde import ValidationError
from core.forms import AccountForm
from core.lib.serde import drakdoo
from core.models import Account, Callback
from core.models import Account
from core.util import logs
log = logs.get_logger(__name__)
@@ -100,7 +97,7 @@ class AccountAction(LoginRequiredMixin, APIView):
form = AccountForm(
request.data, instance=Account.objects.get(id=account_id)
)
except account.DoesNotExist:
except Account.DoesNotExist:
message = "Account does not exist"
message_class = "danger"
context = {