Opened 16 years ago
Last modified 12 years ago
#8320 closed
Admin Transaction Management Error — at Version 1
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 (last modified by )
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 86. response = callback(request, *callback_args, **callback_kwargs) File "/home/holdenwe/django-trunk/django/contrib/admin/sites.py" in root 172. return self.model_page(request, *url.split('/', 2)) File "/home/holdenwe/django-trunk/django/views/decorators/cache.py" in _wrapped_view_func 44. response = view_func(request, *args, **kwargs) File "/home/holdenwe/django-trunk/django/contrib/admin/sites.py" in model_page 189. return admin_obj(request, rest_of_url) File "/home/holdenwe/django-trunk/django/contrib/admin/options.py" in __call__ 275. return self.change_view(request, unquote(url)) File "/home/holdenwe/django-trunk/django/db/transaction.py" in _commit_on_success 251. leave_transaction_management() File "/home/holdenwe/django-trunk/django/db/transaction.py" in leave_transaction_management 75. 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 (3)
by , 16 years ago
comment:1 by , 16 years ago
Component: | Uncategorized → Admin interface |
---|---|
Description: | modified (diff) |
milestone: | 1.0 maybe → 1.0 |
Triage Stage: | Unreviewed → Accepted |
(Fixed description to stop my eyes watering.)
Putting this on the 1.0 track because if it can ever be reliably repeated we should definitely fix it. That first part is going to be the trick, of course. Finding the right 'component' is a little tough, since we don't quite know where the problem lies. Making it admin for now, since that's the visible symptom at least.
accounts/admin.py