“invalid literal for int() with base 10: ” Error coming while using dynamic ” **{ column: new_email_or_phone} ” field in django update query
Update query is :-
user = models.users.objects.filter(token=request.POST[‘token’],otp=otp).update(**{ column: new_email_or_phone});