diff --git a/docs/topics/models.rst b/docs/topics/models.rst index 567e8237..bd50d95c 100644 --- a/docs/topics/models.rst +++ b/docs/topics/models.rst @@ -215,6 +215,13 @@ Model Methods If the insertion isn't applied, a LWTException is raised + .. code-block:: + t = TestTransactionModel(text='some text', count=5) + try: + t.iff(count=5).update('other text') + except LWTException as e: + # handle failure + .. method:: update(**values) Performs an update on the model instance. You can pass in values to set on the model