rather use `if request.method == 'POST'`, a POST with no payload is still a POST, `request.POST` will be an empty dictionary and this will return `False`.