Opened 16 years ago

Last modified 12 years ago

#8320 closed

Admin Transaction Management Error — at Initial Version

Reported by: holdenweb Owned by: nobody
Component: contrib.admin Version: dev
Severity: Normal Keywords: admin transaction
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

When using admin from the trunk [r8346] on Ubuntu I am getting occasional tracebacks like the following. I *appears* only to happen when one of the foreign key fields is changed, or at least I haven't been able to trigger the problem without changing one of them. I am only selecting values using the drop-downs populated from the related models.

Environment:

Request Method: POST

Request URL: http://test.holdenweb.com/admin/accounts/userprofile/14/

Django Version: 1.0-alpha_2-SVN-8346

Python Version: 2.4.3

Installed Applications:

['django.contrib.auth',

'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.admin',
'pages',
'grp',
'contact',
'registration',
'accounts']

Installed Middleware:
('django.middleware.common.CommonMiddleware',

'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.middleware.doc.XViewMiddleware')

Traceback:
File "/home/holdenwe/django-trunk/django/core/handlers/base.py" in get_response

  1. response = callback(request, *callback_args, callback_kwargs)

File "/home/holdenwe/django-trunk/django/contrib/admin/sites.py" in root

  1. return self.model_page(request, *url.split('/', 2))

File "/home/holdenwe/django-trunk/django/views/decorators/cache.py" in _wrapped_view_func

  1. response = view_func(request, *args, kwargs)

File "/home/holdenwe/django-trunk/django/contrib/admin/sites.py" in model_page

  1. return admin_obj(request, rest_of_url)

File "/home/holdenwe/django-trunk/django/contrib/admin/options.py" in call

  1. return self.change_view(request, unquote(url))

File "/home/holdenwe/django-trunk/django/db/transaction.py" in _commit_on_success

  1. leave_transaction_management()

File "/home/holdenwe/django-trunk/django/db/transaction.py" in leave_transaction_management

  1. raise TransactionManagementError("Transaction managed block ended with pending COMMIT/ROLLBACK")

Exception Type: TransactionManagementError at /admin/accounts/userprofile/14/
Exception Value: Transaction managed block ended with pending COMMIT/ROLLBACK

Change History (2)

by holdenweb, 16 years ago

Attachment: admin.py added

accounts/admin.py

by holdenweb, 16 years ago

Attachment: models.py added

accounts/models.py

Note: See TracTickets for help on using tickets.
Back to Top