Enhanced time synchronization for drf views.
Update README.md
1 file changed, +1 -1
+1-1README.md
| @@ -36,7 +36,7 @@ from .models import MyModel | ||
| 36 | 36 | class MyView(APIView): |
| 37 | 37 | def get(request: Request, pk:int): |
| 38 | 38 | 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 | |
| 40 | 40 | ... |
| 41 | 41 | return Response(data) |
| 42 | 42 |