Пример #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()
Пример #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()
Пример #3
0
 def delete(self):
     return self.update(deleted_uuid=generate_uuid(),
                        deleted_at=datetime.now())
Пример #4
0
 def delete(self):
     return self.update(deleted_uuid=generate_uuid(),
                        deleted_at=datetime.now())