mirror of
https://github.com/lemeow125/Borrowing-TrackerBackend.git
synced 2024-11-16 22:09:27 +08:00
Improve caching
This commit is contained in:
parent
628e280102
commit
10f3ece9b7
1 changed files with 1 additions and 0 deletions
|
@ -3,6 +3,7 @@ from accounts.permissions import IsTeacher, IsStudent
|
||||||
from rest_framework import viewsets, generics
|
from rest_framework import viewsets, generics
|
||||||
from .serializers import TransactionSerializer
|
from .serializers import TransactionSerializer
|
||||||
from .models import Transaction
|
from .models import Transaction
|
||||||
|
from django.core.cache import cache
|
||||||
|
|
||||||
|
|
||||||
class TransactionViewSet(viewsets.ModelViewSet):
|
class TransactionViewSet(viewsets.ModelViewSet):
|
||||||
|
|
Loading…
Reference in a new issue