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/q/u/quanda-HEAD/views/__init__.py   quanda(Download)
import quanda.models
from quanda.forms import QuestionForm, QuestionTagForm, QuestionListForm, QuestionListOrderForm, QuestionListAddForm, AnswerForm, RepForm, ProfileForm, CommentForm
from quanda.models import Question, QuestionVote, QuestionTag, QuestionList, QuestionListOrder, QuestionView, Answer, AnswerVote, Profile, Comment
from quanda.utils import get_user_rep
 
                list_questions = QuestionListOrder.objects.filter(question_list=list)
                if not list_questions:
                    new_item = QuestionListOrder(question_list=list, question=question, order=1)
                    new_item.save()
                    return HttpResponseRedirect(reverse('quanda_list_details', args=[list.id]))
                else:
                    order_number = list_questions.order_by('-order')[0].order + 1
                    new_item = QuestionListOrder(question_list=list, question=question, order=order_number)

src/q/u/quanda-HEAD/forms.py   quanda(Download)
from django.contrib.auth.models import User
 
from quanda.models import Question, QuestionList, QuestionListOrder, QuestionTag, Answer, Profile, Comment
from quanda.utils import strip_js