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

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

src/a/r/archfinch-HEAD/comments/views.py   archfinch(Download)
from lazysignup.decorators import allow_lazy_user
from archfinch.utils import render_to_response, form_error_msg
from archfinch.comments.models import AddCommentForm
from archfinch.main.models import Item
 
        data = {'category': 14}
        data.update(request.POST.items())
        form = AddCommentForm(data)
        if form.is_valid():
            comment = form.save(commit=False)

src/a/r/archfinch-HEAD/main/views.py   archfinch(Download)
from archfinch.main.models import Item, Opinion, Action, Similarity, Category, Tag, TagBlock, TagFollow
from archfinch.main.forms import AddItemForm1, AddItemForm2, AddItemWizard
from archfinch.comments.models import AddCommentForm
from archfinch.users.models import User
from django.contrib.auth.decorators import login_required
        selected_path = None
 
    add_comment_form = AddCommentForm()
 
    comment_tree = item.comment_tree(selected_path=selected_path, user=request.user)