Improve caching

This commit is contained in:
Keannu Bernasol 2024-01-07 11:02:16 +08:00
parent 628e280102
commit 10f3ece9b7

View file

@ -3,6 +3,7 @@ from accounts.permissions import IsTeacher, IsStudent
from rest_framework import viewsets, generics
from .serializers import TransactionSerializer
from .models import Transaction
from django.core.cache import cache
class TransactionViewSet(viewsets.ModelViewSet):