irongit

Enhanced time synchronization for drf views.

Update README.md

huncholanehuncholaneauthored committed by GitHub
parent df87231commit a25f36f36ec202c550a92f03472f73e6e7383d00Browse files

1 file changed, +1 -1

+1-1README.md
@@ -36,7 +36,7 @@ from .models import MyModel
3636 class MyView(APIView):
3737 def get(request: Request, pk:int):
3838 instance = MyModel.objects.get(pk=pk)
39- TimeCheck(request,instance).check_time() # throws rest framework exception
39+ TimeCheck(request,instance).should_get() # throws rest framework exception
4040 ...
4141 return Response(data)
4242