def METHOD_NAME(self):
    if settings.WAFER_REGISTRATION_MODE != 'ticket':
        raise Http404('Ticket-based registration is not in use')
    if not settings.WAFER_REGISTRATION_OPEN:
        return False
    return not self.request.user.userprofile.is_registered()