-
Notifications
You must be signed in to change notification settings - Fork 290
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
with postgres DB and psycopg 3 driver, occurs randomly when creating entity or vendor etc.:
Request Method: POST
Request URL: http://localhost:8000/ledger/customer/simevo-pqr0mwbu/create/
Django Version: 4.2.8
Exception Type: RuntimeError
Exception Value:
A durable atomic block cannot be nested within another atomic block.
Exception Location: /usr/local/lib/python3.11/site-packages/django/db/transaction.py, line 190, in __enter__
Raised during: django_ledger.views.customer.CustomerModelCreateView
Python Executable: /usr/local/bin/python3
Python Version: 3.11.6
Python Path:
['/app',
'/usr/local/lib/python311.zip',
'/usr/local/lib/python3.11',
'/usr/local/lib/python3.11/lib-dynload',
'/usr/local/lib/python3.11/site-packages']
Server time: Tue, 05 Dec 2023 13:23:52 +0000
To Reproduce
- start up django-ledger with postgres DB for example with: https://github.com/simevo/django-ledger-starter/tree/dockerize
- log in
- "New Entity", fill
Entity Name
andAddress Line 1
hit "Create" - if it does not happen, try creating a vendor immediately thereafter
Expected behavior
it should create the entity
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working