summaryrefslogtreecommitdiff
path: root/docs
AgeCommit message (Collapse)Author
2013-03-22Fixed #17935 - Clarified intro of topics/files.txt.Tim Graham
Thanks guettli for the suggestion.
2013-03-21Docs template name mistakeTom V
change_list_request.html doesn't exist, it's named  change_list_results.html
2013-03-21Fixed #20084 -- Provided option to validate formset max_num on server.Andrew Gorcester
This is provided as a new "validate_max" formset_factory option defaulting to False, since the non-validating behavior of max_num is longstanding, and there is certainly code relying on it. (In fact, even the Django admin relies on it for the case where there are more existing inlines than the given max_num). It may be that at some point we want to deprecate validate_max=False and eventually remove the option, but this commit takes no steps in that direction. This also fixes the DoS-prevention absolute_max enforcement so that it causes a form validation error rather than an IndexError, and ensures that absolute_max is always 1000 more than max_num, to prevent surprising changes in behavior with max_num close to absolute_max. Lastly, this commit fixes the previous inconsistency between a regular formset and a model formset in the precedence of max_num and initial data. Previously in a regular formset, if the provided initial data was longer than max_num, it was truncated; in a model formset, all initial forms would be displayed regardless of max_num. Now regular formsets are the same as model formsets; all initial forms are displayed, even if more than max_num. (But if validate_max is True, submitting these forms will result in a "too many forms" validation error!) This combination of behaviors was chosen to keep the max_num validation simple and consistent, and avoid silent data loss due to truncation of initial data. Thanks to Preston for discussion of the design choices.
2013-03-20Fixed #18839 - Field.__init__() now calls super().Carny Cheng
2013-03-20Fixed #20096 -- Added link to the Greek localflavor appClaude Paroz
2013-03-19Fixed #16319 -- added SuccessMessageMixin to contrib.messagesPaul Collins
Thanks martinogden for the initial patch and d1ffuz0r for tests.
2013-03-18small documentation update to outline caveat with SESSION_COOKIE_DOMAINRyan West
2013-03-18Added warn note to docs about MySQL issues with 0000-00-00 date stringsJuan Catalano
MySQL accepts 0000-00-00 as a valid date but MySQLdb converts those values into None. So there will be problems for instance if trying to transport the data using dumpdata/loaddata. This patch refs #6642 that has been closed as wontfix since this is a particular problem of MySQL.
2013-03-18Fixed #13260 -- Quoted arguments interpolated in URLs in reverse.Aymeric Augustin
2013-03-18Update versions and links to source tarballs.Justin Bronn
2013-03-18Fixed #19968 -- Dropped support for PostgreSQL < 8.4.Aymeric Augustin
2013-03-18Fixed #17037 -- Added a --all option to diffsettings.Aymeric Augustin
2013-03-17Minor docs fix for e11ccc76.Aymeric Augustin
2013-03-17Two additions to the deployment checklist.Aymeric Augustin
Thanks Erik Romijn.
2013-03-17Fixed #19697 -- Added a deployment checklist.Aymeric Augustin
2013-03-17Added structure in the 1.6 release notes.Aymeric Augustin
The backwards-incompatible changes section wasn't structured in sections like it is in release notes for previous versions.
2013-03-17Updated bundled version of six.Aymeric Augustin
2013-03-15Fix #20054: Removed links to modwsgi.org.Baptiste Mispelon
2013-03-15Fixed #20053 -- Fix `index_together` documentationJohan Charpentier
2013-03-15Merge pull request #901 from giamfreeg/masterAymeric Augustin
Fixed an erroneous import in example code of docs (class-based-views/intro).
2013-03-15Corrected typos in the 1.6 release notesMarc Tamlyn
2013-03-14Deprecated django.views.defaults.shortcut.Aymeric Augustin
2013-03-14Fixed #17051 -- Removed some 'invalid' field error messagesClaude Paroz
When the 'invalid' error message is set at field level, it masks the error message raised by the validator, if any.
2013-03-14Updated release instructions to account for website automation.Aymeric Augustin
2013-03-14Fixed #16649 -- Refactored save_base logicAnssi Kääriäinen
Model.save() will use UPDATE - if not updated - INSERT instead of SELECT - if found UPDATE else INSERT. This should save a query when updating, but will cost a little when inserting model with PK set. Also fixed #17341 -- made sure .save() commits transactions only after the whole model has been saved. This wasn't the case in model inheritance situations. The save_base implementation was refactored into multiple methods. A typical chain for inherited save is: save_base() _save_parents(self) for each parent: _save_parents(parent) _save_table(parent) _save_table(self)
2013-03-13Fixed #20032 -- Documented how to simulate the absence of a settingClaude Paroz
Thanks Ram Rachum for the report.
2013-03-13Fixed an erroneous import in example code.Pablo Sanfilippo
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