summaryrefslogtreecommitdiff
path: root/docs
AgeCommit message (Collapse)Author
2013-03-13Proof-read and adjusted the transactions docs.Aymeric Augustin
2013-03-13Made atomic usable when autocommit is off.Aymeric Augustin
Thanks Anssi for haggling until I implemented this. This change alleviates the need for atomic_if_autocommit. When autocommit is disabled for a database, atomic will simply create and release savepoints, and not commit anything. This honors the contract of not doing any transaction management. This change also makes the hack to allow using atomic within the legacy transaction management redundant. None of the above will work with SQLite, because of a flaw in the design of the sqlite3 library. This is a known limitation that cannot be lifted without unacceptable side effects eg. triggering arbitrary commits.
2013-03-12Fixed #19965 - Added a warning that the tutorial is written for Python 2.Tim Graham
Thanks itsallvoodoo for the patch.
2013-03-11Fixed broken link in binary fields doc.Ramiro Morales
2013-03-11Fixed #20026 -- Typo in Apache auth docs.Aymeric Augustin
2013-03-11Deprecated django.contrib.comments.Jacob Kaplan-Moss
2013-03-11Improved the API of set_autocommit.Aymeric Augustin
2013-03-11Used commit_on_success_unless_managed to make ORM operations atomic.Aymeric Augustin
2013-03-11Added an option to disable the creation of savepoints in atomic.Aymeric Augustin
2013-03-11Added a note about long-running processes.Aymeric Augustin
There isn't much else to say, really.
2013-03-11Added an explanation of transactions and grouped low-level APIs.Aymeric Augustin
2013-03-11Updated the documentation for savepoints.Aymeric Augustin
Apparently django.db.transaction used to be an object.
2013-03-11Deprecated TransactionMiddleware and TRANSACTIONS_MANAGED.Aymeric Augustin
Replaced them with per-database options, for proper multi-db support. Also toned down the recommendation to tie transactions to HTTP requests. Thanks Jeremy for sharing his experience.
2013-03-11Added some assertions to enforce the atomicity of atomic.Aymeric Augustin
2013-03-11Implemented an 'atomic' decorator and context manager.Aymeric Augustin
Currently it only works in autocommit mode. Based on @xact by Christophe Pettus.
2013-03-11Added support for savepoints in SQLite.Aymeric Augustin
Technically speaking they aren't usable yet.
2013-03-11Deprecated transaction.is_managed().Aymeric Augustin
It's synchronized with the autocommit flag.
2013-03-11Deprecated transaction.commit/rollback_unless_managed.Aymeric Augustin
Since "unless managed" now means "if database-level autocommit", committing or rolling back doesn't have any effect. Restored transactional integrity in a few places that relied on automatically-started transactions with a transitory API.
2013-03-11Enabled database-level autocommit for all backends.Aymeric Augustin
This is mostly a documentation change. It has the same backwards-incompatibility consequences as those described for PostgreSQL in a previous commit.
2013-03-11Added an API to control database-level autocommit.Aymeric Augustin
2013-03-11Made transaction.managed a no-op and deprecated it.Aymeric Augustin
enter_transaction_management() was nearly always followed by managed(). In three places it wasn't, but they will all be refactored eventually. The "forced" keyword argument avoids introducing behavior changes until then. This is mostly backwards-compatible, except, of course, for managed itself. There's a minor difference in _enter_transaction_management: the top self.transaction_state now contains the new 'managed' state rather than the previous one. Django doesn't access self.transaction_state in _enter_transaction_management.
2013-03-11Moved a warning in the 1.6 notes back to its expected location.Aymeric Augustin
2013-03-10Fixed #20018: Added backtick to fix referenceJonathan Loy
Fixed #20018
2013-03-10Fixed #20008 -- Removed trailing slash in Wikipedia linkClaude Paroz
Thanks senden9 at gmail.com for the report.
2013-03-09Fixed #9806 -- Allowed editing GeometryField with OpenLayersWidgetClaude Paroz
Thanks Paul Winkler for the initial patch.
2013-03-09Fixed #19923 -- Display tracebacks for non-CommandError exceptionsClaude Paroz
By default, show tracebacks for management command errors when the exception is not a CommandError. Thanks Jacob Radford for the report.
2013-03-08Fixed #15363 -- Renamed and normalized to `get_queryset` the methods that ↵Loic Bistuer
return a QuerySet.
2013-03-07Adde two "versionadded" markers, thanks to mYk for noticing.Alex Gaynor
2013-03-07Added a ManyToManyField(db_constraint=False) option, this allows not ↵Alex Gaynor
creating constraints on the intermediary models.
2013-03-07Fixed #19997 -- Added custom EMPTY_VALUES to form fieldsClaude Paroz
Thanks Loic Bistuer for the report and the patch.
2013-03-06Fixed #19543 -- implemented SimpleLazyObject.__repr__Preston Holmes
Thanks to Florian Hahn for the patch
2013-03-06Update link to django-mssql projectMichael Manfre
2013-03-06Fixed #19994 -- Typo.Aymeric Augustin
Thanks akshar for the report.
2013-03-03Removed mentions of regressiontests.Ramiro Morales
2013-03-03Release notes blurb for 804366327d728d23a9f7a25ff77a6eed3c9f9323.Ramiro Morales
2013-03-03Fix Typo explicitly. Fixes #19971Tobias Carlander
2013-03-03Removed unnecessary imports.Aymeric Augustin
2013-03-02Fixed #19917 -- Added microseconds in default TIME_INPUT_FORMATSClaude Paroz
Thanks minddust for the report.
2013-03-02Fixed #19962 - Added a note about SESSION_EXPIRE_AT_BROWSER_CLOSE and ↵Tim Graham
browsers that persist sessions. Thanks David Sanders.
2013-03-02Fixed #18130 -- Made the isolation level configurable on PostgreSQL.Aymeric Augustin
Thanks limscoder for the report and niwi for the draft patch.
2013-03-02Add a BinaryField model fieldClaude Paroz
Thanks Michael Jung, Charl Botha and Florian Apolloner for review and help on the patch.
2013-03-01Fixed #19960 -- Fixed sentence in contrib.auth signals docsClaude Paroz
Thanks edd at slipszenko.net for the report.
2013-02-28Fixed #19929 -- Improved error when MySQL doesn't have TZ definitions.Aymeric Augustin
Thanks tomas_00 for the report.
2013-02-28Implemented persistent database connections.Aymeric Augustin
Thanks Anssi Kääriäinen and Karen Tracey for their inputs.
2013-02-28Fixed #19937 - Typo in class-based views intro.Tim Graham
2013-02-281.5 is no longer "UNDER DEVELOPMENT".Florian Apolloner
Thanks to Bruno Renie for reporting.
2013-02-28Added a Trac-related item to the release checklist.Aymeric Augustin
2013-02-27Merge pull request #858 from intgr/py3kdoc-fixTim Graham
Fixed a typo in Python 3 porting guide.
2013-02-27Fixed #19926 -- Fixed a link to code example in queries docsClaude Paroz
Thanks Randy Salvo for the report.
2013-02-27Refactored database exceptions wrapping.Aymeric Augustin
Squashed commit of the following: commit 2181d833ed1a2e422494738dcef311164c4e097e Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Wed Feb 27 14:28:39 2013 +0100 Fixed #15901 -- Wrapped all PEP-249 exceptions. commit 5476a5d93c19aa2f928c497d39ce6e33f52694e2 Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Tue Feb 26 17:26:52 2013 +0100 Added PEP 3134 exception chaining. Thanks Jacob Kaplan-Moss for the suggestion. commit 9365fad0a650328002fb424457d675a273c95802 Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Tue Feb 26 17:13:49 2013 +0100 Improved API for wrapping database errors. Thanks Alex Gaynor for the proposal. commit 1b463b765f2826f73a8d9266795cd5da4f8d5e9e Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Tue Feb 26 15:00:39 2013 +0100 Removed redundant exception wrapping. This is now taken care of by the cursor wrapper. commit 524bc7345a724bf526bdd2dd1bcf5ede67d6bb5c Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Tue Feb 26 14:55:10 2013 +0100 Wrapped database exceptions in the base backend. This covers the most common PEP-249 APIs: - Connection APIs: close(), commit(), rollback(), cursor() - Cursor APIs: callproc(), close(), execute(), executemany(), fetchone(), fetchmany(), fetchall(), nextset(). Fixed #19920. commit a66746bb5f0839f35543222787fce3b6a0d0a3ea Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Tue Feb 26 14:53:34 2013 +0100 Added a wrap_database_exception context manager and decorator. It re-throws backend-specific exceptions using Django's common wrappers.