コード例 #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
ファイル: models.py プロジェクト: pajenterprise/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)