| Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
Refs #23842. Thanks Thomas Chaumeny for the suggestion.
|
|
Thanks Berker Peksag for the suggestion.
|
|
makemessages now doesn't need any special ignoring logic, after
commit bb4a92d784.
|
|
Changed the handling of extensions to be used for gettext. Now
obeying the --extension argument. find_files now only find the
given or default extensions and puts only these in the
TranslatableFiles. As a result there are no more confusing messages
for filetypes (extension) not handled by makemessages.
|
|
They were deprecated in Django 1.2 but not all the supporting code was
removed in Django 1.4. Since the remaining code was unlikely to be
functional (pun intended) e.g. it would crash unless the loader
function had an is_usable attribute, this commit completes the removal
immediately instead of starting another deprecation path.
|
|
This ensures that enabling the cached loader doesn't change behavior.
(Before this commit, it did when the list contained unusable loaders.)
|
|
This provides the opportunity to move utility functions specific to the
Django Template Language outside of django.template.loader.
|
|
|
|
It didn't account for class-based template loaders.
|
|
They can be replaced with override_settings and that makes the
corresponding tests much more obvious.
|
|
This change has the nice side effect of removing code that ran at import
time and depended on the app registry at module level -- a notorious
cause of AppRegistryNotReady exceptions.
|
|
It didn't do anything, wasn't documented and wasn't used anywhere.
|
|
Since it isn't branded as a test utility any more and could be used for
other purposes than test code, that prefix no longer makes sense.
It wasn't used anywhere either.
|
|
Reformatted the code of base.Loader according to modern standards.
Turned the test template loader into a regular locmem.Loader -- but
didn't document it.
Added a normal deprecation path for BaseLoader which is a public API.
Added an accelerated deprecation path for TestTemplateLoader which is
a private API.
|
|
That commit contained a mistake that resulted in the use_cached_loader
option of override_with_test_loader being ignored. As a consequence some
configurations weren't exercised any more by the test suite.
|
|
|
|
|
|
Fixed #23585 - Corrected internal comment.
|
|
|
|
Fixes #23837: Replace list with deque in migration-planner for improved performance.
|
|
Thanks Reinout van Rees for the review.
|
|
|
|
|
|
fixed #23834 -- added test and fix to check for default null on ArrayField
|
|
migrations
|
|
|
|
|
|
This commit broke the tests on Python 3.
This reverts commit 13d613f80011852404198dfafd1f09c0c0ea42e6.
|
|
|
|
rather than an ad-hoc algorithm
|
|
Removed misleading comment and provide correct one, explaining
idea behind hardcoded CSRF template context processor.
|
|
|
|
Fixed #16358 - Made memcache backend delete old value on a failure to set.
|
|
positives.
|
|
|
|
Default Memcached configuration allows for a maximum object of 1MB and
will fail to set the key if it is too large. The key will be deleted from
memcached if it fails to be set. This is needed to avoid an issue with
cache_db session backend using the old value stored in memcached, instead
of the newer value stored in the database.
|
|
Custom form fields having a `queryset` attribute but no
`limit_choices_to` could no longer be used in ModelForms.
Refs #2445.
Thanks to artscoop for the report.
|
|
__init__ isn't allowed to return anything other than None and it isn't
common practice to include a return statement.
|
|
Usage of this method was removed pre 1.0 (c2ba59fc).
|
|
http.cookie.
This fix is necessary for Python 3.5 compatibility (refs #23763).
Thanks Berker Peksag for review.
|
|
|
|
Made _do_update behave more strictly according to its docs,
including a corner case when specific concurent updates are
executed and select_on_save is set.
|
|
|
|
`io.open` is required on Python 2.7. Just `open` would work on Python 3.
|
|
|
|
JavaScript string extraction support has been added in gettext
0.18.3.
Thanks Aymeric Augustin for the review.
|
|
Added a test for the condition safe_join is designed to prevent.
Previously, a generic ValueError was raised. It was impossible to tell
an intentional exception raised to implement safe_join's contract from
an unintentional exception caused by incorrect inputs or unexpected
conditions. That resulted in bizarre exception catching patterns, which
this patch removes.
Since safe_join is a private API and since the change is unlikely to
create security issues for users who use it anyway -- at worst, an
uncaught SuspiciousFileOperation exception will bubble up -- it isn't
documented.
|