I have a simple view, but I can’t get him to do what he suggested, that he simply flips the boolean:
def change_status(request):
request.user.get_profile().active=not request.user.get_profile().active
return render_to_response('holdstatus.html', {
'user' : request.user,
})
In addition to “no,” I tried “-” and “!”, But all to no avail.
source
share