Expire the SQLAlchemy cached user object after flush() so the subsequent get_by_id() reloads the agency relationship with fresh data. Previously the identity map returned the same Python object with the old .agency, causing audit logs to record identical old and new values on agency changes. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| alembic | ||
| app | ||
| .env.example | ||
| alembic.ini | ||
| Dockerfile | ||
| requirements.txt | ||