79409101

Date: 2025-02-03 14:28:20
Score: 1
Natty:
Report link

So by looking a bit more patiently in the documentation, i noticed this section:

sqlalchemy_session_persistence
Control the action taken by sqlalchemy_session at the end of a create call.

Valid values are:

None: do nothing

'flush': perform a session flush()

'commit': perform a session commit()

The default value is None.

Why the hell the default option is 'None'? I don't know. But just by setting it manually to 'commit' the data started being saved on database.

Reasons:
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: João Pedro Martins de Paula