def post(self, request, *args, **kwargs):
        # Use the name of the submit button to determine which form to validate
        if u'login_submit' in request.POST:
            return self.validate_login_form()
        elif request.POST in u'registration_submit':
            return self.validate_registration_form()
        return http.HttpResponseBadRequest()

    # LOGIN
dataset/ETHPy150Open django-oscar/django-oscar/src/oscar/apps/customer/views.py/AccountAuthView.post/swapped operands of `in`