| Age | Commit message (Collapse) | Author |
|
|
|
- Fixed bug in get_callable() that caused resolve() to put a string
in ResolverMatch.func.
- Made ResolverMatch.url_name match the actual url name (or None).
- Updated tests that used the string value in ResolverMatch.func, and
added regression tests for this bug.
- Corrected test urls whose dummy view paths caused failures (behavior
that was previously masked by this bug).
|
|
Refs #18714. Same logic as options for makemessages commands.
|
|
cache.add() incorrectly succeeded when there was an existing key
with an infinite (None) timeout.
|
|
functools.partial.
Regression in 8b93b31487d6d3b0fcbbd0498991ea0db9088054.
Thanks rcoup for the report.
|
|
Thanks Benjamin Bach for the report and initial patch.
This is a security fix; disclosure to follow shortly.
|
|
This is useful for tests manually calling migrate inside a testcase,
for normal usage this should make no difference, since there is no
surrounding transaction after all. If there is one we still try to
leave the transaction in a useable state (for postgres at least).
If this commit turns out to be causing issues, settings savepoint=False
is probably the right fix :)
|
|
|
|
Binary mode added in ed532a6a1e is not supported by ZipFile.
Refs #22399.
|
|
This might help on systems where default encoding is not UTF-8 (and
on Python 3).
Thanks bacilla for the report.
|
|
The warning hint of `_check_test_runner` of 1.6 compatibility had a link
to a general release note. The link should be edited to refer the
relevant "Backwards incompatible changes in 1.6" section that documents
the cause and the possible solutions and workarounds of the warning.
|
|
in favor of installing sqlparse."
This reverts commit 071c9337750b296d198cced56f3ffad0e176afb6.
This introduced a regression on MySQL and custom SQL is deprecated.
|
|
Thanks Elvard for the patch.
|
|
Thanks Elvard for the patch.
|
|
favor of installing sqlparse.
|
|
Changed the BaseEmailBackend to allow usage as context manager to open
and close connections.
|
|
It has been only used in the builtin_servers tests since Django 1.4.
|
|
|
|
|
|
refs #14305.
Thanks Adrian Klaver for the report.
|
|
|
|
|
|
Refs #22307.
|
|
Thanks Baptiste Mispelon for the review.
|
|
Fixed a test failure that appeared after 753a22a6, although the bug
existed before that commit.
Refs #22308.
|
|
Fixed a test failure that appeared after 753a22a6, although the bug
existed before that commit.
Refs #22308.
|
|
Added condition to prevent checking the existence of a file name of a
file like object when the name attribute is None. This is necessary
because a SpooledTemporaryFile won't exist on the file system or have a
name until it has reached its max_size. Also added tests.
|
|
Previously, when createcachetable and flush operated on non-default
databases, they weren't atomic.
|
|
|
|
refs #19934.
|
|
|
|
Some platforms with os.name == 'posix' do not have the
fcntl module, e.g. AppEngine.
refs #19373.
|
|
|
|
|
|
Thanks Anssi Kääriäinen for the idea and Simon Charette for the
review.
|
|
Also took the opportunity to slightly refactor gettext options
so as to ease customization by subclassing the command.
Thanks Michal Čihař for the report and initial patch.
|
|
Fixed URL resolving in the case where an outer regex includes an inner
regex and both regexes use positional parameters instead of named
groups, causing the outer regex's parameters to override the inner
regex's.
Modified the regex url resolver so that it will concatenates and then
normalizes, instead of normalizing and then concatenating.
|
|
This feature allows the default `TIMEOUT` Cache argument to be set to `None`,
so that cache instances can set a non-expiring key as the default,
instead of using the default value of 5 minutes.
Previously, this was possible only by passing `None` as an argument to
the set() method of objects of type `BaseCache` (and subtypes).
|
|
Thanks Piotr Kasprzyk for help with the patch.
|
|
compatibility checks.
|
|
|
|
Thanks to Thomas Güttler for the suggestion.
|
|
|
|
|
|
The new error message now hints that the most likely issue
is a circular import.
Thanks to trac user elena for the report and to
bpeschier for the original patch.
|
|
Due to a mixup between text and bytes, iteration over
a File instance was broken under Python 3.
Thanks to trac user pdewacht for the report and patch.
|
|
MemoryUploadedFile.
This provides better backwards compatibility for those constructing these
objects manually.
Refs #13721.
|
|
Instead of crashing with a CommandError, now a non-writable location
of mo files will only make compilemessages complain and continue.
Thanks Ramiro Morales for the review.
|
|
116d39842dab2569013856e9f3701a7cb6554f09.
This option is not actually very useful in the general case
because it doesn't override sys.stdin.
It's still marginally useful for testing some features of
the createsuperuser command so it was moved there.
This commit also makes the detection of a TTY in createsuperuser
a bit more robust, after a suggestion of appolo13.
|
|
This makes testing certain features easier.
Thanks to AeroNotix for the original patch.
|