MCPcopy
hub / github.com/ormar-orm/ormar / ModelPersistenceError

Class ModelPersistenceError

ormar/exceptions.py:67–73  ·  view source on GitHub ↗

Raised for update of models without primary_key set (cannot retrieve from db) or for saving a model with relation to unsaved model (cannot extract fk value).

Source from the content-addressed store, hash-verified

65
66
67class ModelPersistenceError(AsyncOrmException):
68 """
69 Raised for update of models without primary_key set (cannot retrieve from db)
70 or for saving a model with relation to unsaved model (cannot extract fk value).
71 """
72
73 pass
74
75
76class SignalDefinitionError(AsyncOrmException):

Callers 6

bulk_updateMethod · 0.90
saveMethod · 0.90
updateMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected