Getting requests is not defined. please find the below code(I'm not using it directly in CBV).
views.py
class ShiftChangeUpdateView(request,PermissionRequiredMixin,UpdateView):
permission_required = ('apple.change_shiftchange',)
model=ShiftChange
logger.info('Data has been Deleted by %s !', request.user.username)
fields='__all__'
I have checked by using self also but no luck. urls.py
url(r'^updategenesys/(?P<pk>\d+)/$', views.ShiftChangeUpdateView.as_view()),
How to fix this issue?