def post(self, request):
        
        mode = request.POST.get('mode')
        
        list_mode = []
        for i in settings.DISPLAY_MODE:
            list_mode.append(i[0])
        
        if list_mode in mode:
            profile = request.user.profile.get()
            profile.file_manager_display_mode = mode
            profile.save()
            
            response = Response(status.HTTP_200_OK)
            return self.render(response) 
        
        else:
            response = Response(status.HTTP_404_NOT_FOUND)
            return self.render(response)
dataset/ETHPy150Open ionyse/ionyweb/ionyweb/administration/views/file_manager.py/FileManagerDisplayMode.post/swapped operands of `in`