(self, d)
Called via the admin interface (if user checks the "deleted" checkox)
Called via the admin interface (if user checks the "deleted" checkox)
Called via the admin interface ( if user checks the deleted checkox )
def set_deleted(self, d):
        """Called via the admin interface (if user checks the "deleted" checkox)"""
        if d and not self.deleted_at:
            self.__dirty = True
            self.deleted_at = timezone.now()
        elif not d and self.deleted_at:
            self.__dirty = True
            self.deleted_at = None
def set_deleted ( self , d ) : if d and not self . deleted_at : self . __dirty = True self . deleted_at = timezone . now ( ) elif not d and self . deleted_at : self . __dirty = True self . deleted_at = None