Allow deleting requisitions

This commit is contained in:
2023-05-06 11:59:30 +01:00
parent 8f92c7c840
commit e934e7b1a2
3 changed files with 27 additions and 1 deletions

View File

@@ -1,7 +1,7 @@
from django.contrib.auth.mixins import LoginRequiredMixin
from django.http import HttpResponse
from django.urls import reverse
from mixins.views import ObjectList, ObjectUpdate
from mixins.views import ObjectDelete, ObjectList, ObjectUpdate
from rest_framework import status
from two_factor.views.mixins import OTPRequiredMixin
@@ -45,6 +45,10 @@ class BanksRequisitionUpdate(LoginRequiredMixin, OTPRequiredMixin, ObjectUpdate)
return req
class BanksRequisitionDelete(LoginRequiredMixin, OTPRequiredMixin, ObjectDelete):
model = Requisition
class BanksCurrencies(LoginRequiredMixin, OTPRequiredMixin, ObjectList):
"""
Get a list of bank accounts with their details.