Did I find the right examples for you? yes no

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

src/n/o/Nouweo-HEAD/posts/views.py   Nouweo(Download)
from django.http import Http404, HttpResponse, HttpResponseNotFound, \
    HttpResponseRedirect
from models import PostType, News, Picture, Category, Version, Idea, \
    IdeaForm, NewsForm
from community.models import ThreadedComment, Vote
 
    if request.method == 'POST':
        form = IdeaForm(request.POST, instance=idea, request=request)
        if form.is_valid():
            form.save()
            return HttpResponseRedirect(reverse('posts_draft'))
    else:
        form = IdeaForm(instance=idea)