예제 #1
0
파일: models.py 프로젝트: alanjds/arecibo
 def save(self):
     created = not hasattr(self, "id")
     if created:
         self.timestamp = datetime.now()
     self.put()
     if created:
         notification_created.send(sender=self.__class__, instance=self)
예제 #2
0
 def save(self):
     created = not hasattr(self, "id")
     if created:
         self.timestamp = datetime.now()
     self.put()
     if created:
         notification_created.send(sender=self.__class__, instance=self)
예제 #3
0
파일: models.py 프로젝트: erikrose/arecibo
 def save(self, *args, **kw):
     created = not getattr(self, "id", None)
     super(Notification, self).save(*args, **kw)
     if created:
         notification_created.send(sender=self.__class__, instance=self)
예제 #4
0
 def save(self, *args, **kw):
     created = not getattr(self, "id", None)
     super(Notification, self).save(*args, **kw)
     if created:
         notification_created.send(sender=self.__class__, instance=self)