from rest_framework.generics import DestroyAPIView
from expenses.serializer import ExpenseSerializer
from expenses.models import Expense


class ExpenseDeleteApi(DestroyAPIView):
    queryset = Expense.objects.all()
    serializer_class = ExpenseSerializer

from rest_framework.generics import DestroyAPIView
from expenses.serializer import ExpenseSerializer
from expenses.models import Expense


class ExpenseDeleteApi(DestroyAPIView):
    queryset = Expense.objects.all()
    serializer_class = ExpenseSerializer
