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

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

src/q/u/quanda-HEAD/views/__init__.py   quanda(Download)
def lists(request):
    if not request.user.is_staff: return HttpResponse("Unauthorized")
    if request.method == 'POST':
        form = QuestionListForm(request.POST)
        if form.is_valid():
        if request.POST.has_key('edit_list'):
            edit_form = QuestionListForm(request.POST, instance=list)
            if edit_form.is_valid():
                list = edit_form.save()
                return HttpResponseRedirect(reverse('quanda_list_details', args=[list.id]))