| Age | Commit message (Collapse) | Author |
|
real issues, or b) were impossible to hit.
|
|
|
|
Previous this used Python's builtin hash() function, which has never been guarnteed to be stable across implementations (CPython/Jython/etc.) or 32/64 bitness. However, this in practice it was stable. However, with the impending release of Python 3.3 hash randomizations is enabled by default, which would mean the index name changed between program invocations.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Thanks ferdonline for the initial patch and Karen Tracey for the
related post on django-users.
|
|
smart_str/smart_text should only be used when a potential lazy
string should be preserved in the result of the function call.
|
|
In all those occurrences, we didn't care about preserving the
lazy status of the strings, but we really wanted to obtain a
real bytestring.
|
|
Fixed #18837. Refs #18791.
|
|
|
|
|
|
Backwards compatibility aliases were created under Python 2.
|
|
|
|
|
|
|
|
|
|
This commit fixes the auto-reload of the development server.
I should have done that change in ca07fda2.
|
|
|
|
|
|
when computing the length of a dictionary. This fails on Python 3.
|
|
Fixed a regression introduced in 59a655988ee95e4b4e4646cebea88b620d8fcdd2.
|
|
This patch removes an unconditional float(value) conversion from db
backend default convert_values() method. This can cause problems when
aggregating over character fields for example. In addition, Oracle
and SQLite already return the bare value from their convert_values().
In the long term the converting should be done by fields, and the
fields should then call database backend specific converters when
needed. The current setup is inflexible for 3rd party fields.
Thanks to Merlijn van Deen for the original patch.
|
|
Thanks Aymeric Augustin for the review.
|
|
|
|
|
|
|
|
See PEP 3114. `next` is retained as an alias for Python 2.
|
|
The six addition has been borrowed from:
https://bitbucket.org/gutworth/six/changeset/733ef740
|
|
* Renamed smart_unicode to smart_text (but kept the old name under
Python 2 for backwards compatibility).
* Renamed smart_str to smart_bytes.
* Re-introduced smart_str as an alias for smart_text under Python 3
and smart_bytes under Python 2 (which is backwards compatible).
Thus smart_str always returns a str objects.
* Used the new smart_str in a few places where both Python 2 and 3
want a str.
|
|
|
|
This is a useful trick when Python 2 awaits byte strings and
Python 3 Unicode (regular) strings.
|
|
|
|
Conflicts:
django/db/backends/postgresql_psycopg2/base.py
|
|
Previously, the flush was done before the test case execution and now
it is performed after it.
Other changes to the testing infrastructure include:
* TransactionTestCase now doesn't reset autoincrement sequences either
(previous behavior can achieved by using `reset_sequences`.)
With this, no implicit such reset is performed by any of the provided
TestCase classes.
* New ordering of test cases: All unittest tes cases are run first and
doctests are run at the end.
THse changes could be backward-incompatible with test cases that relied
on some kind of state being preserved between tests. Please read the
relevant sections of the release notes and testing documentation for
further details.
Thanks Andreas Pelme for the initial patch. Karen Tracey and Anssi
Kääriäinen for the feedback and Anssi for reviewing.
This also fixes #12408.
|
|
xrange/range will be dealt with in a separate commit due to the huge
number of changes.
|
|
|
|
|
|
|
|
|
|
|
|
The qs.bulk_create() method did not work with large batches together
with SQLite3. This commit adds a way to split the bulk into smaller
batches. The default batch size is unlimited except for SQLite3 where
the batch size is limited to 999 SQL parameters per batch.
Thanks to everybody who participated in the discussions at Trac.
|
|
Thanks Kristian Glass for the report.
|
|
This is Ian Kelly's patch from #15580 with minor modifications.
|
|
When the postgresql_psycopg2 backend was used with DB-level autocommit
mode enabled, after entering transaction management and then leaving
it, the isolation level was never set back to autocommit mode.
Thanks brodie for report and working on this issue.
|
|
- backends: supports_transactions()
- select_for_update tests
|
|
Correctly configure NLS_SESSION_PARAMETERS to format Date and DateTime
on Oracle backend.
Thanks to Josh Smeaton for report & patch.
|