예제 #1
0
 def destroy(self):
     with self.obj_as_admin():
         updated_values = db.group_snapshot_destroy(self._context, self.id)
     self.update(updated_values)
     self.obj_reset_changes(updated_values.keys())
예제 #2
0
 def destroy(self):
     with self.obj_as_admin():
         updated_values = db.group_snapshot_destroy(self._context, self.id)
     self.update(updated_values)
     self.obj_reset_changes(updated_values.keys())