summaryrefslogtreecommitdiff
path: root/django/utils
AgeCommit message (Collapse)Author
2018-08-01[2.1.x] Fixed CVE-2018-14574 -- Fixed open redirect possibility in ↵Andreas Hug
CommonMiddleware.
2018-07-23[2.1.x] Fixed #29514 -- Reverted "Used datetime.timezone.utc instead of ↵Tim Graham
pytz.utc for better performance." This reverts commit 27ca5ce19f5f184018a61611c1bc319113b1d107 due to a regression. Backport of 2ec151e35da93047acfeea1b79c27010f2cb8594 from master
2018-07-19[2.1.x] Fixed #29578 -- Made numberformat.format() honor forced l10n usage.Claude Paroz
Thanks Sassan Haradji for the report. Backport of 0adfba968e28cfb4e4d681e658866debbbd68089 from master
2018-07-18[2.1.x] Removed duplicate words in various comments.Mariusz Felisiak
Backport of a73cf8110e6cccbf46bf77fd4ddce2df99df53ca from master
2018-06-27[2.1.x] Refs #29253 -- Fixed method_decorator() crash if decorator sets a ↵Chris Jerdonek
new attribute. Regression in fdc936c9130cf4fb5d59869674b9a31cc79a7999. Backport of f434f5b84f7fcea9a76a551621ecce70786e2899 from master
2018-05-12Moved to_language() to django.utils.translation.Tim Graham
Follow up to 1b7d524cfa7b7834af26c99407af66be6813938d.
2018-05-12Consolidated duplicate to_locale() implementations.Tim Graham
Follow up to ac59ec8f1a34ea0e82bdb3c77422694e8016e0a7.
2018-05-12Aliased trans_null.to_locale() to trans_real.to_locale().Hasan Ramezani
The implementations have unintentionally diverged.
2018-05-10Replaced TOKEN_* constants by TokenType enums.Claude Paroz
Thanks Tim Graham for the review.
2018-05-10Fixed #21408 — German Translation for “3 days ago”Maximilian Merz
The problem: “3 days ago” should translate to “vor 3 Tagen” in German, while “3 days” translates to “3 Tage”. #21408 describes that django always translated to “Tage”, even when the dative “Tagen” was correct. The same applies to months (“Monate”/“Monaten”) and years (“Jahre”/“Jahren”). The solution: Let `timesince` caller provide the string dict to use for the time-related strings.
2018-05-04Fixed #26688 -- Fixed HTTP request logging inconsistencies.Samir Shah
* Added logging of 500 responses for instantiated responses. * Added logging of all 4xx and 5xx responses.
2018-04-17Fixed #29334 -- Updated pypi.python.org URLs to pypi.org.Brett Cannon
2018-04-16Fixed #29253 -- Made method_decorator(list) copy attributes.Chris Jerdonek
2018-03-20Used datetime.timezone.utc instead of pytz.utc for better performance.Sergey Fedoseev
2018-03-16Fixed hanging indentation in various code.Mariusz Felisiak
2018-03-06Fixed CVE-2018-7537 -- Fixed catastrophic backtracking in ↵Tim Graham
django.utils.text.Truncator. Thanks James Davis for suggesting the fix.
2018-03-06Fixed CVE-2018-7536 -- Fixed catastrophic backtracking in urlize and ↵Tim Graham
urlizetrunc template filters. Thanks Florian Apolloner for assisting with the patch.
2018-03-03Refs #17476 -- Removed obsolete simplification of timezone names in cache ↵Sergey Fedoseev
key generation.
2018-03-03Fixed #29144 -- Made untranslated strings for territorial language variants ↵Patryk Zawadzki
use translations from the generic language variant.
2018-02-26Refs #28909 -- Simplifed code using unpacking generalizations.Mariusz Felisiak
2018-02-23Fixed #27449 -- Added django.utils.translation.get_supported_language_variant().Sebastian Sangervasi
2018-02-21Changed "language-code" to the more commonly used "language code".Sebastian Sangervasi
2018-02-20Fixed #28755 -- Made check_for_language() include apps' locale directories.Chillar Anand
2018-02-09Refs #27795 -- Replaced force_text() calls with str() in django.utils.html.Jon Dufresne
2018-02-07Fixed #17419 -- Added json_tag template filter.Jonas Haag
2018-01-24Fixed #28977 -- Changed local-memory cache to use LRU culling.Grant Jenks
LRU culling turns every read into a kind of write to the cache: cache keys are moved to the first position in the OrderedDict when they are retrieved. The RWLock which permitted multiple readers while prioritizing a single writer is obsolete since all accesses are now writes.
2018-01-21Fixed #29038 -- Removed closing slash from HTML void tags.Jon Dufresne
2018-01-12Fixed #28996 -- Simplified some boolean constructs and removed trivial ↵Дилян Палаузов
continue statements.
2018-01-11Fixed #28638 -- Made allowed_hosts a required argument of is_safe_url().Jon Dufresne
2018-01-08Improved readability of utils.datetime_safe._findall().Srinivas Reddy Thatiparthy
2018-01-05Simplified django.utils.feedgenerator.rfc2822_date().Sergey Fedoseev
2018-01-05Simplified django.utils.feedgenerator.rfc3339_date().Sergey Fedoseev
2018-01-03Fixed #28982 -- Simplified code with and/or.Дилян Палаузов
2018-01-03Fixed #28984 -- Made assorted code simplifications.Tim Graham
2018-01-02Refs #28965 -- Deprecated unused django.utils.http.cookie_date().Tim Graham
2017-12-28Fixed #28926 -- Fixed loss of precision of big DurationField values on ↵Sergey Fedoseev
SQLite and MySQL.
2017-12-26Fixed #28930 -- Simplified code with any() and all().Дилян Палаузов
2017-12-23Fixed #28594 -- Removed Jython docs and specific codeClaude Paroz
Thanks Andrey Martyanov for the reporti, and Tim Graham for the review.
2017-12-21Refs #28909 -- Simplifed code using unpacking generalizations.Nick Pope
2017-12-11Fixed #28909 -- Simplified code using tuple/list/set/dict unpacking.Nick Pope
2017-12-07Fixed #28906 -- Removed unnecessary bool() calls.Tim Graham
2017-12-07Refs #23919 -- Replaced super() calls for old-style classes.Nick Pope
2017-12-04Fixed #28860 -- Removed unnecessary len() calls.Дилян Палаузов
2017-12-04Simplified django.utils.cache.get_max_age().Jozef
2017-11-28Fixed #28837 -- Fixed test client crash if an exception with more than one ↵Nicolas Delaby
arg is raised. Also removed usage of the problematic pattern elsewhere. Regression in 6e55e1d88a5c4453e25f0caf7ffb68973de5c0ba.
2017-11-18Fixed #28810 -- Replaced '%' style logging formatting with str.format() style.Chris Lamb
2017-11-17Fixed #28798 -- Removed unused django.utils.dates.WEEKDAYS_REV, MONTHS_3_REV.Chris Lamb
2017-11-07Fixed #28769 -- Replaced 'x if x else y' with 'x or y'.Дилян Палаузов
2017-11-06Fixed #28501 -- Fixed "python -m django runserver" crash.Yusuke Miyazaki
2017-10-31Refs #23919 -- Updated references to urllib.quote() to Python 3 location.Ville Skyttä