summaryrefslogtreecommitdiff
path: root/django
AgeCommit message (Collapse)Author
2012-08-21Fixed #17886 -- Fixed join promotion in ORed nullable queriesAnssi Kääriäinen
The ORM generated a query with INNER JOIN instead of LEFT OUTER JOIN in a somewhat complicated case. The main issue was that there was a chain of nullable FK -> non-nullble FK, and the join promotion logic didn't see the need to promote the non-nullable FK even if the previous nullable FK was already promoted to LOUTER JOIN. This resulted in a query like a LOUTER b INNER c, which incorrectly prunes results.
2012-08-21Merge walk and find_files in makemessages commandClaude Paroz
2012-08-21Removed obsolete __members__ definitionsClaude Paroz
This was useful for pre-Python 2.6 support. See commit c6e8e5d9.
2012-08-21Reverted type check added in 62954ba04c.Aymeric Augustin
Refs #17040.
2012-08-20[py3] Fixed #17040 -- ported django.utils.crypto.constant_time_compare.Aymeric Augustin
This is a private API; adding a type check is acceptable.
2012-08-20[py3] Fixed #18805 -- ported createsuperuser.Aymeric Augustin
Thanks sunsesh at gmail.com for the report.
2012-08-20[py3] Prepared MySQL backend for Python 3 compatibilityClaude Paroz
2012-08-20Fixed #18063 -- Avoid unicode in Model.__repr__ in python 2Simon Meers
Thanks guettli and mrmachine.
2012-08-19[py3] Fixed Oracle specific failuresAnssi Kääriäinen
2012-08-19Fixed #18728 -- Made colon optional in tzinfoAymeric Augustin
Made two-digit hours and minutes mandatory in tzinfo (the code used to crash if a one-digit representation was provided). Added standalone tests for django.utils.dateparse.
2012-08-19Removed an inaccurate statementAymeric Augustin
in docstrings of dateparse functions.
2012-08-19[py3] Fixed another regression from 2892cb0ec4.Aymeric Augustin
2012-08-19[py3] Fixed regression introduced in 536b030363.Aymeric Augustin
Refs #18764. Reverted 536b030363 and switched to a more explicit way of avoiding calling bytes(<int>). This definitely deserves a refactoring. Specifically, _get_content should just return b''.join(self). Unfortunately that's impossible with the current tests.
2012-08-19[py3] Supported integers in HttpResponseAymeric Augustin
Fixed #18764.
2012-08-19Fixed #17278 -- Enabled the spatialite GIS tests to run without having to ↵Julien Phalip
specify a database name in the settings. Thanks to Aymeric for the report and to Ramiro for the initial patch.
2012-08-18[py3] Fixed slow path through file_move_safeKaren Tracey
This path is taken on Windows.
2012-08-18Merge pull request #287 from uruz/ticket18791Andrew Godwin
Fixed #18791: [py3] Double import of six in django.forms.widgets
2012-08-18Merge pull request #289 from mjtamlyn/slugify-real-functionAndrew Godwin
Fixed bug in 212b982 -- Removed duplicate code in removetags
2012-08-18Merge pull request #288 from mjtamlyn/date-list-periodAndrew Godwin
Fixed #3542 -- Add support for changing granularity on ArchiveView.
2012-08-18Fixed bug in 212b982 -- Removed duplicate code in removetagsMarc Tamlyn
2012-08-18Fixed #3542 -- Add support for changing granularity on ArchiveView.Marc Tamlyn
Resolving the concept from a very old ticket in a more class-based-view manner.
2012-08-18[py3] Made 212b9826bd Python 3-friendlyAymeric Augustin
2012-08-18Fixed #18791: [py3] Double import of six in django.forms.widgetsAlexey Boriskin
2012-08-18[py3] Avoided passing a lazy string to urlparse.Aymeric Augustin
This causes an exception under Python 3. Fixed #18776.
2012-08-18Introduced force_bytes and force_str.Aymeric Augustin
This is consistent with the smart_* series of functions and it's going to be used by the next commit.
2012-08-18Fixed #17228 -- params context variable is inconsistentMarc Tamlyn
Remove the params variable from the context and just put the variables in directly. This had not been committed previously as the original pattern was used in the functional generic views and we wanted consistency between them, but django.views.generic.simple.direct_to_template is now gone so we can do it 'right'.
2012-08-18Fixed #14516 -- Extract methods from removetags and slugify template filtersMarc Tamlyn
Patch by @jphalip updated to apply, documentation and release notes added. I've documented strip_tags as well as remove_tags as the difference between the two wouldn't be immediately obvious.
2012-08-18Fixed #16744 -- Class based view should have the view object in the contextMarc Tamlyn
Updated the most recent patch from @claudep to apply again and updated the documentation location.
2012-08-18[py3] Ported django.utils.safestring.Aymeric Augustin
Backwards compatibility aliases were created under Python 2.
2012-08-18Add a SQlite backend. One test passes!Andrew Godwin
2012-08-18All tests passing on MySQLAndrew Godwin
2012-08-18First stab at MySQL supportAndrew Godwin
2012-08-18Fixed #18779 -- URLValidator can't validate url with ipv6.Marc Tamlyn
Validation is reasonably 'soft', as for the ipv4. False positives don't matter too much here.
2012-08-18[py3] Removed gratuitous use of map/lambdaAymeric Augustin
that causes a test failure on Python 3 because map returns an iterator.
2012-08-18[py3] Stopped attempting to translate bytes.Aymeric Augustin
That goes actively against the goal of cleaning string handling.
2012-08-18[py3] Fixed cache tests.Aymeric Augustin
2012-08-18[py3] Fixed backends tests.Aymeric Augustin
2012-08-18[py3] Added compatibility import of thread/_threadAymeric Augustin
This commit fixes the auto-reload of the development server. I should have done that change in ca07fda2.
2012-08-18[py3] Fixed formtools tests.Aymeric Augustin
Python 3 adds a new pickle protocol. The tests were updated in a way that makes it easy to add another pickle protocol, should Python gain one. Thanks Thomas Pelletier for providing an initial version of this patch.
2012-08-18[py3] Fixed file_storage tests.Aymeric Augustin
2012-08-17Made createsuperuser more robust when getting current OS username.Ramiro Morales
Under some versions of OS X, failure in getting the default system locale during the syncdb operation of the auth app were causing hard to diagnose problems afterwards. No solution based on getpreferredencoding() was chosen because it has its own problems with certain combinations of Python and OS X versions (e.g. http://bugs.python.org/issue6202). Thanks prestonsimmons for the report and prestonsimmons and willhardy for the initial patch. Fixes #16017.
2012-08-17[py3] Workarounded a Python bug in mail header encodingClaude Paroz
2012-08-16[py3] Fixed a regression introduced in fcc8de0598.Aymeric Augustin
Thanks George Marshall for the report.
2012-08-16Fixed #18239 -- Subclassed HTMLParser only for selected Python versionsClaude Paroz
Only Python versions affected by http://bugs.python.org/issue670664 should patch HTMLParser. Thanks Raphaël Hertzog for the initial patch (for 1.4).
2012-08-16Fixed Python version check in testcases.pyClaude Paroz
2012-08-16[py3] Ported django.core.servers.Aymeric Augustin
2012-08-16[py3] Avoided relying on 2.x-only internalsAymeric Augustin
in LiveServerTestCase.
2012-08-16[py3] Fixed installed_models filtering.Dmitry Shevchenko
2012-08-15Fix changes introduced in fd04e7 so they don't break on Python 3.Ramiro Morales
2012-08-15Added import of force_unicode to utils/text.pyAdrian Holovaty
For backwards compatibility with stupid people like me. Refs #18772.