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/forms.py   quanda(Download)
            raise forms.ValidationError("This question does not exist")
 
        if QuestionListOrder.objects.filter(question_list=self.list, question=question):
            raise forms.ValidationError("This question is already on the list")
 

src/q/u/quanda-HEAD/views/__init__.py   quanda(Download)
            if add_question_form.is_valid():
                question = get_object_or_404(Question, pk=add_question_form.cleaned_data['question'])            
                list_questions = QuestionListOrder.objects.filter(question_list=list)
                if not list_questions:
                    new_item = QuestionListOrder(question_list=list, question=question, order=1)