i want to run decorator function before my view's dispatch method
below is my decorators.py
from django.urls import reverse
from django.shortcuts import render
from django.shortcuts import redirect
def check_point(point=None):
def decorator(view_func):
def wrap(request, *args, **kwargs):
price = point or request.get_object().price
if request.user.point.get_point() >= price:
return view_func(request, *args, **kwargs)
return wrap
return decorator
and my view code
@method_decorator(check_point, name='dispatch')
class CheckWinningView(SingleObjectMixin, RedirectView):
model = Product
But when I run the code, I get the following error:

I'm not sure why I'm getting this error.
I know that 'pk' must be entered unconditionally due to the characteristics of singleobjectmixin.
how can i fix it?