Esempio n. 1
0
    def delete(self):
        if self.deleted_uuid:
            raise self.RedeletedError, self.pk

        self.deleted_uuid = generate_uuid()
        self.deleted_at = datetime.now()
        self.save()
Esempio n. 2
0
    def delete(self):
        if self.deleted_uuid:
            raise self.RedeletedError, self.pk

        self.deleted_uuid = generate_uuid()
        self.deleted_at = datetime.now()
        self.save()
Esempio n. 3
0
 def delete(self):
     return self.update(deleted_uuid=generate_uuid(),
                        deleted_at=datetime.now())
Esempio n. 4
0
 def delete(self):
     return self.update(deleted_uuid=generate_uuid(),
                        deleted_at=datetime.now())