Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)

src/b/o/boar-HEAD/boar/mailing_lists/views.py   boar(Download)
def unsubscribe(request, user_id, mailing_list_id, token):
    user = get_object_or_404(User, pk=user_id)
    mailing_list = get_object_or_404(MailingList, pk=mailing_list_id)
    if not default_token_generator.check_token(user, mailing_list, token):
        raise Http404('Invalid token')