Пример #1
0
 def delete(self, *values):
     # Returns an update action that removes the given values from a set attribute
     value = values[0] if len(values) == 1 else values
     return DeleteAction(self, self._to_operand(value))
Пример #2
0
 def difference_update(self, subset):
     # Returns an update action that deletes the subset from this set attribute
     return DeleteAction(self, self._to_operand(subset))
Пример #3
0
 def delete(self, value):
     # Returns an update action that removes the given value from a set attribute
     return DeleteAction(self, self._to_operand(value))