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
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
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
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