summaryrefslogtreecommitdiff
path: root/django/core
AgeCommit message (Collapse)Author
2013-05-19Fixed #16330 -- added --pks option in dumpdata commandPreston Holmes
Thanks to guettli for the initial ticket and patch, with additional work from mehmetakyuz and Kevin Brolly.
2013-05-19Fixed #12747 -- Made reason phrases customizable.Aymeric Augustin
2013-05-19Fixed #18990 -- Loaddata now complains if fixture doesn't existSenko Rasic
If the fixture doesn't exist, loaddata will output a warning. The fixture named "initial_data" is exceptional though; if it doesn't exist, the warning is not emitted. This allows syncdb and flush management commands to attempt to load it without causing spurious warnings. Thanks to Derega, ptone, dirigeant and d1ffuz0r for contributions to the ticket.
2013-05-19Fixed #18990: Loaddata now complains if fixture doesn't existSenko Rasic
The fixture named "initial_data" is exceptional though; if it doesn't exist, the error is not raised. This allows syncdb and flush management commands to attempt to load it without causing an error if it doesn't exist.
2013-05-18Merge branch 'allow-any-iterable-for-choices'Donald Stufft
2013-05-18Fixed #20430 - Enable iterable of iterables for model choicesDonald Stufft
Allows for any iterable, not just lists or tuples, to be used as the inner item for a list of choices in a model.
2013-05-18Fixed #13285: populate_xheaders breaks cachingŁukasz Langa
2013-05-18Fixed #9595 -- Allow non-expiring cache timeouts.Jacob Burch
Also, streamline the use of 0 and None between cache backends.
2013-05-18Fixed #20422 -- Applied makemessage's --ignore patterns to full pathBaptiste Mispelon
Fix makemessage's --ignore patterns being applied to the full path instead of the file name. Thanks to nnseva for the report and the original patch.
2013-05-18Merge branch 'master' into schema-alterationAndrew Godwin
2013-05-17Fixed #20427 -- Moved a variable initialization in storage.pyClaude Paroz
This is fixing commit 4e70ad11d2. Thanks mattias at elements.nl for the report and Baptiste Mispelon for identifying the faulty commit.
2013-05-17Replaced an antiquated pattern.Aymeric Augustin
Thanks Lennart Regebro for pointing it out.
2013-05-14Fixed #19934 - Use of Pillow is now preferred over PIL.Daniel Lindsley
This starts the deprecation period for PIL (support to end in 1.8).
2013-05-11Fixed #20136 - Fixed and expanded the docs for loaddata and model signals.Tim Graham
Thanks brandon@ and Anssi for the report.
2013-05-10Merge branch 'master' into schema-alterationAndrew Godwin
2013-05-08Added an HTTP status code to Django's WSGI application that was missing ↵Alex Gaynor
(reason unknown).
2013-05-08Fixed #20256 -- Corrected startproject --template help textClaude Paroz
Thanks n0nam3 for the patch.
2013-05-07Fixed #20354 -- `makemessages` no longer crashes with `UnicodeDecodeError`Tai Lee
Handle the `UnicodeDecodeError` exception, send a warning to `stdout` with the file name and location, and continue processing other files.
2013-04-29Fixed #20330 -- Normalized spelling of "web server".Aymeric Augustin
Thanks Baptiste Mispelon for the report.
2013-04-28Fixed #18336 -- Doubled request_queue_size.Aymeric Augustin
This reduces random failures to load static files with Google Chrome.
2013-04-18Merge branch 'master' into schema-alterationAndrew Godwin
Conflicts: django/db/backends/__init__.py django/db/backends/mysql/base.py django/db/backends/oracle/base.py django/db/backends/oracle/creation.py django/db/backends/postgresql_psycopg2/base.py django/db/backends/sqlite3/base.py django/db/models/fields/related.py
2013-04-03Adds generators support for email backends that do not support it.Brendon Crawford
2013-04-01Fixed #20169 -- Ensured that the WSGI request's path is correctly based on ↵Julien Phalip
the `SCRIPT_NAME` environment parameter or the `FORCE_SCRIPT_NAME` setting, regardless of whether or not those have a trailing slash. Thanks to bmispelon for the review.
2013-04-01Fixed #5014 -- Guessed max_digits and decimal_places for SQLiteClaude Paroz
Decimal is treated as float on SQLite, hence inspectdb can only guess max_digits and decimal_places arguments.
2013-03-30Fixed #19998 -- Fixed --ignorenonexistent support for XML based fixtures.Christoph Sieghart
2013-03-24Fixed #18985 -- ensure module level deprecations are displayedPreston Holmes
Also don't compete with -W CLI option. Thanks to Aymeric Augustin for the catch, and Claude Paroz for the patch.
2013-03-25Fixed #19541 -- Fixed BaseHandler to enable reversing URLs in response ↵Loic Bistuer
middlewares and streamed responses with respect to per-request urlconf.
2013-03-24Fixed #19385 again, now with real code changesAnssi Kääriäinen
The commit of 266de5f9ae9e9f2fbfaec3b7e4b5fb9941967801 included only tests, this time also code changes included...
2013-03-24Fixed #17550 -- Removed a workaround for a bug in flup 1.0.1.Aymeric Augustin
This reverts commit 948a833eb7fd9be0bc2d585c92a407f036ef42b2. flup appears to be dead, and this fix breaks legitimate uses of Django. Refs #8490.
2013-03-20Fixed #18972 -- Refactored bundled wsgi server's chunking algorithm.Matthew Wood
Thanks to amosonn at yahoo.com for the report, @doda for the initial patch and @datagrok for the revamped logic and test case.
2013-03-19Fixed #18003 -- Preserved tracebacks when re-raising errors.konarkmodi
Thanks jrothenbuhler for draft patch, Konark Modi for updates.
2013-03-18Fixed #13260 -- Quoted arguments interpolated in URLs in reverse.Aymeric Augustin
2013-03-18Fixed #17037 -- Added a --all option to diffsettings.Aymeric Augustin
2013-03-16Fix #20058: Make compilemessages use stdout instead of stderr.Baptiste Mispelon
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-14Add a specific error message for URLValidatorClaude Paroz
2013-03-13Fix #20022: Correctly handle prefixes with url-unsafe characters in reverse().Baptiste Mispelon
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-11Fixed a refactoring error in ba5138b1.Aymeric Augustin
Thanks Florian for tracing the error.
2013-03-11Fixed #11569 -- Wrapped DatabaseCache._base_set in an atomic block.Aymeric Augustin
The atomic block provides a clean rollback to a savepoint on failed writes. The ticket reported a race condition which I don't know how to test.
2013-03-11Fixed loaddata command, broken in the previous merge.Aymeric Augustin
2013-03-11Used commit_on_success_unless_managed in loaddata.Aymeric Augustin
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-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-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-10Made (make|compile)messages check for availability of gettext commands.Ramiro Morales
Refs #19584.
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-03Fixed #19942 -- Decoded errors coming from Popen commandsClaude Paroz
Thanks Aymeric Augustin for reporting the issue.
2013-03-01Removed unused options copy in flushClaude Paroz
This was used at the time the 'database' option did not default to DEFAULT_DB_ALIAS in make_option.