summaryrefslogtreecommitdiff
path: root/django
AgeCommit message (Collapse)Author
2012-09-19Revert "Fixed #16865 -- Made get_or_create use read database for initial get ↵Carl Meyer
query." Thanks to Jeremy Dunck for pointing out the problem with this change. If in a single transaction, the master deletes a record and then get_or_creates a similar record, under the new behavior the get_or_create would find the record in the slave db and fail to re-create it, leaving the record nonexistent, which violates the contract of get_or_create that the record should always exist afterwards. We need to do everything against the master here in order to ensure correctness. This reverts commit 901af865505310a70dd02ea5b3becbf45819b652.
2012-09-19Fixed #16865 -- Made get_or_create use read database for initial get query.Carl Meyer
Thanks Rick van Hattem for the report and trbs for the patch.
2012-09-18Use unicode.translate to speed up js escaping.Dave Hall
2012-09-18Fixed #18980 -- Fixed assertContains regression when passed an objectJeremy Dunck
2012-09-18Fixed #18800 -- Support numbers bigger than max float in `numberformat`.Florian Apolloner
Thanks to jbvsmo for the patch and Brad Pitcher for the tests.
2012-09-18Stylistic fixes: triple-quoted docstrings, more commentsAndrew Godwin
2012-09-17Fix bug in get_indexes affecting the testsAndrew Godwin
2012-09-17Merge branch 'lotheac-fix_uploaded_file_exec'Florian Apolloner
2012-09-17Fixed #18947 -- Don't make uploaded files executeable by default.Florian Apolloner
Thanks to Lauri Tirkkonen for the patch.
2012-09-17More schema test fixingAndrew Godwin
2012-09-17Added tests for d21f3d9b171a3cbff4c8ce7a9dbb8b8be3f21bac.Florian Apolloner
2012-09-17Merge remote-tracking branch 'core/master' into schema-alterationAndrew Godwin
Conflicts: django/db/backends/mysql/base.py django/db/backends/postgresql_psycopg2/base.py
2012-09-17Fix app loading/test interactionAndrew Godwin
2012-09-17Only update `last_login` instead of the whole user object in ↵Florian Apolloner
`update_last_login`.
2012-09-16Fixed #17485 regression -- only + select_related interactionAnssi Kääriäinen
When doing deeper than one level select_related() + only queries(), the code introduced in b6c356b7bb97f3d6d4831b31e67868313bbbc090 errored incorrectly. Thanks to mrmachine for report & test case.
2012-09-15Fixed #18530 -- Fixed a small regression in the admin filters where wrongly ↵Julien Phalip
formatted dates passed as url parameters caused an unhandled ValidationError. Thanks to david for the report.
2012-09-15Fixed #17948 -- Isolated auth tests from custom template loadersClaude Paroz
Thanks andrey@kostenko.name for the report.
2012-09-15Used ST_AsText for testing PostGIS raw queryClaude Paroz
AsText will not be supported in further versions of PostGIS (>=2).
2012-09-13Merge pull request #364 from martey/ticket_18933Tim Graham
Fixed #18933 - Fixes code example for cycle in docstring.
2012-09-13Removed unused quoting/encoding in gis db backendClaude Paroz
2012-09-13Fixed #18795 -- Fixed failing GeoDjango testsClaude Paroz
Proj.4 and SRS strings may slightly vary depending on the installed libraries. Made some tests pass again with recent Proj.4/GDAL lib versions.
2012-09-12[py3] Fixed GeoDjango mutable list testsClaude Paroz
2012-09-12Made minimal changes to make gis test suite start with Python 3Claude Paroz
2012-09-12Fixed test output check when password is blankClaude Paroz
2012-09-12Fixed #18182 -- Made is_usable_password check if hashing algorithm is correctClaude Paroz
The display of the ReadOnlyPasswordHashWidget has also been improved to distinguish empty/unusable password from erroneous password. Fixed #18453 also. Thanks danielr and Leo for the reports and Moritz Sichert for the initial patch.
2012-09-12Fixed #18790 -- Encoded database password on Python 2Claude Paroz
Thanks thcourbon@gmail.com for the report.
2012-09-10Document and test 'type' usage in Widget attrsClaude Paroz
Refs #16630.
2012-09-10fixed rfc comment typo in middleware/csrf.pyCollin Anderson
2012-09-10Fixed #18611 -- Display current date/time when running runserverMike Grouchy
2012-09-09Fix an HTML-parser test that's failed in Python 2.6.8 since 5c79dd58.Carl Meyer
The problem description in #18239 asserted that http://bugs.python.org/issue670664 was fixed in Python 2.6.8, but based on http://bugs.python.org/issue670664#msg146770 it appears that's not correct; the fix was only applied in 2.7, 3.2, and Python trunk. Therefore we must use our patched HTMLParser subclass in all Python 2.6 versions.
2012-09-09Fix Python 3 test failure introduced in a78dd109.Carl Meyer
2012-09-09Replace nested try/finally try/except with try/except/finally.Florian Apolloner
2012-09-09Fixes #18933. Fixes code example in docstring.Martey Dodoo
Makes code example of silent keyword docstring in cycle templatetag method the same as in the documentation.
2012-09-08Adjust d7853c5 to not show ignorable warnings when running tests.Malcolm Tredinnick
2012-09-08Internal refactoring; moving LOOKUP_SEP up one level.Malcolm Tredinnick
In an ideal world, nothing except django.db.models.query should have to import stuff from django.models.sql.*. A few things were needing to get hold of sql.constants.LOOKUP_SEP, so this commit moves it up to django.db.models.constants.LOOKUP_SEP. There are still a couple of places (admin) poking into sql.* to get QUERY_TERMS, which is unfortunate, but a slightly different issue and harder to adjust.
2012-09-08Fixed #15552 -- LOGIN_URL and LOGIN_REDIRECT_URL can take URLpattern names.Carl Meyer
Thanks UloPe and Eric Florenzano for the patch, and Malcolm Tredinnick for review.
2012-09-08Remove a couple unused imports.Carl Meyer
2012-09-08Fixed #18545 -- Make the 'no DJANGO_SETTINGS_MODULE' error message more ↵Carl Meyer
useful.Thanks Nick Coghlan for the report, and Malcolm Tredinnick for review.
2012-09-08Removed warning check in test_load_overlong_keyClaude Paroz
Some backends issue a warning here, others not. This is not the primary goal of the test, so the assertion about the warning has been removed. Thanks Carl Meyer for noticing the issue and suggesting the fix.
2012-09-08Moved the admin inline JS to new JS files for cleanliness.Travis Swicegood
2012-09-08Updated docs for dates generic views.Aymeric Augustin
Fixes #18245. Refs #3542.
2012-09-08Fixed #18054 -- Deprecated contrib.markup. Thanks to simukis for the initial ↵Preston Holmes
patch.
2012-09-08Remove Admin's swallowing of AttributeError (#16655, #18593, #18747)Travis Swicegood
During the new-admin changes, catching of AttributeError was added to the admin. This patch removes that as it's no longer possible to add a value to a ModelAdmin that is not available. Adding an attribute that can not be called causes an ImproperlyConfigured exception to be raised.
2012-09-08Moved get_primary_key_column implementation to baseClaude Paroz
Refs #17574.
2012-09-07Fixed #18781 -- Reduced max session cookie size.Aymeric Augustin
2012-09-07Fixed #18916 -- Allowed non-ASCII headers.Aymeric Augustin
Thanks Malcolm Tredinnick for the review.
2012-09-07Fixed #12397 -- allow safe_join to work with the root file system path, ↵Alex Gaynor
which means you can have your root template or file upload path at this location. You almost certainly don't want to do this, except in *very* limited sandboxed situations.
2012-09-07Stubbed-out oracle schema fileAndrew Godwin
2012-09-07Very initial Oracle supportAndrew Godwin
2012-09-07Merge branch 'master' into schema-alterationAndrew Godwin