Why do you not use `self.request.method == 'POST'`?