We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5bae8cc commit b63dc36Copy full SHA for b63dc36
uber/models/__init__.py
@@ -2378,10 +2378,10 @@ def __getattr__(self, name):
2378
2379
def __call__(self, create_savepoint=False, *args, **kwargs):
2380
"""
2381
- Creates or returns the current session.
+ Creates a new session or returns the current session.
2382
2383
create_savepoint (bool): Flush the current session to the DB and create a savepoint.
2384
- This enables using session.rollback() to undo changes.
+ This lets you use session.rollback() to undo only changes made after the savepoint.
2385
This is ignored if we're returning a new session.
2386
2387
try:
0 commit comments