Ejemplo n.º 1
0
 def submit_question(self, user):
     if self.title != "":
         self.save()
         question_submit_done.send(sender=Question, obj=self, user=user)
     else:
         return None
     return self.id
Ejemplo n.º 2
0
 def submit_question(self,user):
     if self.title!="":
         self.save()
         question_submit_done.send(sender=Question,obj=self,user=user)
     else:
         return None
     return self.id
Ejemplo n.º 3
0
 def create(self, **kwargs):
     #import pdb;pdb.set_trace()
     question = super(QuestionManager, self).create(**kwargs)
     question_submit_done.send(sender=Question,
                               obj=question,
                               user=kwargs["user"])
     return question
Ejemplo n.º 4
0
 def create(self,**kwargs):
     #import pdb;pdb.set_trace()
     question=super(QuestionManager,self).create(**kwargs)
     question_submit_done.send(sender=Question,obj=question,user=kwargs["user"])
     return question