I have if condition in django view. In this, if condition first checks if variable is set/not empty and in second condition it checks the value in this variable.
if ( request.GET['customActionType'] != '' and request.GET['customActionType'] == 'group_action') :
records['customActionStatus'] = 'OK'
records['customActionMessage'] = 'Group action successfully has been completed. Well done!'
But when I am using these variables in if condition its giving me error.
MultiValueDictKeyError at /admin/help
"'customActionType'"