From 10f3ece9b73e56b314fcceef4892d9ee70eaca15 Mon Sep 17 00:00:00 2001 From: Keannu Bernasol Date: Sun, 7 Jan 2024 11:02:16 +0800 Subject: [PATCH] Improve caching --- equipment_tracker/transactions/views.py | 1 + 1 file changed, 1 insertion(+) diff --git a/equipment_tracker/transactions/views.py b/equipment_tracker/transactions/views.py index 47514ed..50e5219 100644 --- a/equipment_tracker/transactions/views.py +++ b/equipment_tracker/transactions/views.py @@ -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):