Called by the save function to check if this should be persisted with update or insert :return:
(self)
| 496 | self._is_persisted = True |
| 497 | |
| 498 | def _can_update(self): |
| 499 | """ |
| 500 | Called by the save function to check if this should be |
| 501 | persisted with update or insert |
| 502 | |
| 503 | :return: |
| 504 | """ |
| 505 | if not self._is_persisted: |
| 506 | return False |
| 507 | |
| 508 | return all([not self._values[k].changed for k in self._primary_keys]) |
| 509 | |
| 510 | @classmethod |
| 511 | def _get_keyspace(cls): |
no outgoing calls