#15664 closed (fixed)
Unexpected brackets when describing commit_on_success
Reported by: | henryl | Owned by: | nobody |
---|---|---|---|
Component: | Documentation | Version: | 1.2 |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Accepted | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
In the 'Controlling transaction management in views' section of the database transaction page (http://docs.djangoproject.com/en/dev/topics/db/transactions/#controlling-transaction-management-in-views) the decorator example is
from django.db import transaction @transaction.commit_on_success() def viewfunc(request): ...
The '()' following commit_on_success shouldn't be there. It should be
from django.db import transaction @transaction.commit_on_success def viewfunc(request): ...
In the actual 'commit_on_success' section (http://docs.djangoproject.com/en/dev/topics/db/transactions/#django.db.transaction.commit_on_success) it is correctly used.
Change History (3)
comment:1 by , 14 years ago
Triage Stage: | Unreviewed → Accepted |
---|
comment:2 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
In [15923]: