summaryrefslogtreecommitdiff
path: root/docs/topics/db
AgeCommit message (Collapse)Author
2014-02-05Fixed gendered examples in the docs.Loic Bistuer
2014-01-26Fixed typo. Refs #21836.Aymeric Augustin
2014-01-25Fixed #21836 -- Improved transaction docs about autocommit modeChris Jerdonek
Clarified that queries in autocommit mode are committed immediately only if a transaction has not already been started. Added to the main transaction docs that Django's TestCase class implicitly wraps its tests in transactions.
2014-01-20Fixed #16905 -- Added extensible checks (nee validation) frameworkRussell Keith-Magee
This is the result of Christopher Medrela's 2013 Summer of Code project. Thanks also to Preston Holmes, Tim Graham, Anssi Kääriäinen, Florian Apolloner, and Alex Gaynor for review notes along the way. Also: Fixes #8579, fixes #3055, fixes #19844.
2014-01-19Fixed #18907 -- Correct docs regard population of model backrefs.Tim Graham
Thanks simonpercivall for the report and Aymeric for the patch.
2014-01-17Removed some unnecessary __exact operators in filters.Tim Graham
2014-01-16Fixed #21343 -- Noted many-to-many restrictions with intermediate model.Tim Graham
Thanks EvilDMP for the report.
2014-01-02Fixed typos. Changed grammar.Frank Tobia
Minor typos. Some grammar changes.
2013-12-04Fixing manager documentation inaccuracyFrank Wiles
2013-11-30Removed gender-based pronouns per [c0a2daad78].Tim Graham
2013-11-21Fixed #21479 -- Favor 'migrate' over 'syncdb' in the docs.Loic Bistuer
2013-11-08Noted that .clear() will delete intermediary modelsCody Scott
2013-10-22Fixed #17027 -- Added support for the power operator in F expressions.Florian Hahn
Thanks dan at dlo.me for the initial patch. - Added __pow__ and __rpow__ to ExpressionNode - Added oracle and mysql specific power expressions - Added used-defined power function for sqlite
2013-10-11Minor edits to docs/topics/db/queries.txt.Cody Scott
2013-10-10Small improvements to docs/topics/db/models.txtCody Scott
2013-10-02Fixed #10913 -- Documented how related_name affects QuerySet filteringTim Graham
Thanks neithere for the suggestion.
2013-09-30Fixed #21134 -- Prevented queries in broken transactions.Aymeric Augustin
Squashed commit of the following: commit 63ddb271a44df389b2c302e421fc17b7f0529755 Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Sun Sep 29 22:51:00 2013 +0200 Clarified interactions between atomic and exceptions. commit 2899ec299228217c876ba3aa4024e523a41c8504 Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Sun Sep 22 22:45:32 2013 +0200 Fixed TransactionManagementError in tests. Previous commit introduced an additional check to prevent running queries in transactions that will be rolled back, which triggered a few failures in the tests. In practice using transaction.atomic instead of the low-level savepoint APIs was enough to fix the problems. commit 4a639b059ea80aeb78f7f160a7d4b9f609b9c238 Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Tue Sep 24 22:24:17 2013 +0200 Allowed nesting constraint_checks_disabled inside atomic. Since MySQL handles transactions loosely, this isn't a problem. commit 2a4ab1cb6e83391ff7e25d08479e230ca564bfef Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Sat Sep 21 18:43:12 2013 +0200 Prevented running queries in transactions that will be rolled back. This avoids a counter-intuitive behavior in an edge case on databases with non-atomic transaction semantics. It prevents using savepoint_rollback() inside an atomic block without calling set_rollback(False) first, which is backwards-incompatible in tests. Refs #21134. commit 8e3db393853c7ac64a445b66e57f3620a3fde7b0 Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Sun Sep 22 22:14:17 2013 +0200 Replaced manual savepoints by atomic blocks. This ensures the rollback flag is handled consistently in internal APIs.
2013-09-25Fixed #17671 - Cursors are now context managers.Michael Manfre
2013-09-25Fixed #3871 -- Custom managers when traversing reverse relations.Loic Bistuer
2013-09-22Reference Meta.index_together in DB performance guide.Ramiro Morales
2013-09-20Fixed #20877 -- added a performance optimization guideevildmp
2013-09-20Clarified why one must not catch database errors inside atomic.Aymeric Augustin
2013-09-09Fixed #16895 -- Warned about cost of QuerySet orderinge0ne
Thanks outofculture at gmail.com for the suggestion.
2013-09-06Consolidated documentation for F() and Q()evildmp
2013-09-05Fixed #21035 -- Changed docs to treat the acronym SQL phonetically.Eric Boersma
The documentation and comments now all use 'an' to refer to the word SQL and not 'a'.
2013-08-19Merge remote-tracking branch 'core/master' into schema-alterationAndrew Godwin
Conflicts: docs/ref/django-admin.txt
2013-08-19Removed versionadded/changed annotations for 1.5Tim Graham
2013-08-15Fixed some ReST errors regarding backticksTim Graham
2013-08-09Merge remote-tracking branch 'core/master' into schema-alterationAndrew Godwin
Conflicts: django/core/management/commands/flush.py django/core/management/commands/syncdb.py django/db/models/loading.py docs/internals/deprecation.txt docs/ref/django-admin.txt docs/releases/1.7.txt
2013-08-06Fixed #20852 - Fixed incorrectly generated left quotes in docs.Dominic Rodger
Sphinx generates left single quotes for apostrophes after code markup, when right single quotes are required. The easiest way to fix this is just by inserting the unicode character for a right single quote. Instances of the problem were found by looking for ">&#8216;" in the generated HTML.
2013-07-30Implement allow_migrate for migration operationsAndrew Godwin
2013-07-30Rename allow_syncdb to allow_migrateAndrew Godwin
2013-07-27Fixed a number of minor misspellings.Julien Phalip
2013-07-26Fixed #20625 -- Chainable Manager/QuerySet methods.Loic Bistuer
Additionally this patch solves the orthogonal problem that specialized `QuerySet` like `ValuesQuerySet` didn't inherit from the current `QuerySet` type. This wasn't an issue until now because we didn't officially support custom `QuerySet` but it became necessary with the introduction of this new feature. Thanks aaugustin, akaariai, carljm, charettes, mjtamlyn, shaib and timgraham for the reviews.
2013-07-25More migration docs, and conversion of all easy syncdb referencesAndrew Godwin
2013-07-13Removed obsolete sentence in queries docsClaude Paroz
2013-07-05Fixed #20224 -- Update docs examples which mention __unicode__Claude Paroz
Thanks Marc Tamlyn and Tim Graham for the review.
2013-06-28Support 'pyformat' style parameters in raw queries, Refs #10070Shai Berger
Add support for Oracle, fix an issue with the repr of RawQuerySet, add tests and documentations. Also added a 'supports_paramstyle_pyformat' database feature, True by default, False for SQLite. Thanks Donald Stufft for review of documentation.
2013-06-27Fixed #20571 -- Added an API to control connection.needs_rollback.Aymeric Augustin
This is useful: - to force a rollback on the exit of an atomic block without having to raise and catch an exception; - to prevent a rollback after handling an exception manually.
2013-06-01Fixed #20543 - Typo in db model fields docs.Tim Graham
Thanks i.amber.jain@ for the report.
2013-05-28Fixed #20513 - Expanded docs on QuerySet caching.Tim Graham
Thanks seddonym.
2013-05-27Patch for ticket #20506 - documentation typeyishaibeeri
2013-05-19Changed API to disable ATOMIC_REQUESTS per view.Aymeric Augustin
A decorator is easier to apply to CBVs. Backwards compatibility isn't an issue here, except for people running on a recent clone of master. Fixed a few minor problems in the transactions docs while I was there.
2013-05-19Fixed #20183 - Clarified docs assumption that certain objects exist in database.Tim Graham
Thanks Tomasz Jaskowski for the patch.
2013-05-18Add missing imports and models to the examples in the the model layer ↵Marc Egli
documentation
2013-05-17Tidy up some of the transaction documentation.Marc Tamlyn
2013-05-07Remove outdated ForeignKey manager documentation.Mike Fogel
2013-05-05Found a mistake in SQL documentationChristopher Allen-Poole
2013-04-30Fix two typos in database transactions docsAna Krivokapic
2013-04-20Adapted uses of versionchanged/versionadded to the new form.Juan Catalano
Refs #20104.