summaryrefslogtreecommitdiff
path: root/django/utils
AgeCommit message (Collapse)Author
2014-06-12Fixed #22814 -- Allowed ISO-8601 [+-]hh timezone format in parse_datetimeRichard Eames
2014-06-11Fixed #21430 -- Added a RuntimeWarning when unpickling Models and QuerySets ↵Anubhav Joshi
from a different Django version. Thanks FunkyBob for the suggestion, prasoon2211 for the initial patch, and akaariai, loic, and charettes for helping in shaping the patch.
2014-06-07Optimize is_protected_type slightly (used by force_text, which is used ↵Alex Gaynor
basically everywhere)
2014-06-07Fixed #20815 -- Don't enforce unbuffered I/O on Python 3.Aymeric Augustin
No test because this code is already deprecated (part of FastCGI support).
2014-06-07Simplified module_has_submodule on Python >= 3.3.Aymeric Augustin
Stopped using the imp module on Python >= 3.3. Refs #21628.
2014-06-07Made a test compatible with Python 2 and 3.Aymeric Augustin
2014-06-06Fixed #22773 -- Forced templatize() to return unicodeClaude Paroz
2014-06-03Fixed #22681 -- Made TarArchive recognize leading directories properly.Alexandr Shurigin
2014-05-31Note that the stdlib's version of pbkdf2_hmac will also be used in the ↵Alex Gaynor
upcoming Python 2.7.8 release
2014-05-28Fixed several typos in DjangoAlex Gaynor
2014-05-28Fixed constant_time_compare on Python 2.7.7Florian Apolloner
Python 2.7.7 includes compare_digest in the hmac module, but it requires both arguments to have the same type. This is usually not a problem on Python 3 since everything is text, but we have mixed unicode and str on Python 2 -- hence make sure everything is bytes before feeding it into compare_digest.
2014-05-25Removed code deprecated from Django 1.2Claude Paroz
2014-05-24Applied unicode_literals to makemessages commandClaude Paroz
This also fixes #22686 as some sort of side-effect.
2014-05-21Fixed #20477: Allowed list of modules for FORMAT_MODULE_PATHMartin Brochhaus
Previously the FORMAT_MODULE_PATH setting only accepted one string (dotted module path). A feature has been added to also allow a list of strings. This is useful when using several reusable third party apps that define new formats. We can now use them all and we can even override some of the formats by providing a project-wide format module.
2014-05-19Revert "Fixed #20477: Allowed settings.FORMAT_MODULE_PATH to be a list of ↵Tim Graham
modules." This reverts commit 950b6de16ac2f8135612f2ed5984c090dd8e4dcf.
2014-05-19Fixed #20477: Allowed settings.FORMAT_MODULE_PATH to be a list of modules.Martin Brochhaus
Previously the FORMAT_MODULE_PATH setting only accepted one string (dotted module path). This is useful when using several reusable third party apps that define new formats. We can now use them all and we can even override some of the formats by providing a project-wide format module.
2014-05-17Fixed #6668 -- Optimized utils.text wrap functionMarkus Amalthea Magnuson
This fixes a failing test after applying an optimization of the utils.text.wrap function by user SmileyChris.
2014-05-17Fixed several flake8 errors, including one where a test wouldn't be runAlex Gaynor
2014-05-16Optimized make_aware/naive by removing redundant checks. Refs #22625.Aymeric Augustin
Also added tests with pytz and removed misplaced tests.
2014-05-16Fixed #22625 -- Normalized make_aware/naive errors.Aymeric Augustin
Also added tests for is/make_aware/naive. Thanks Tom Michaelis for the report.
2014-05-16Fixed #22531 -- Added tree.Node.__repr__ and tests for the class.Moayad Mardini
While Node class has a useful `__str__`, its `__repr__` is not that useful. Added a `__repr__` that makes use of the current `__str__`. This is especially useful since the more popular `Q` class inherits `tree.Node`. Also created new tests that cover most of `Node` class functionality.
2014-05-14typo: urlaprse -> urlparseCollin Anderson
2014-05-14Added additional checks in is_safe_url to account for flexible parsing.Erik Romijn
This is a security fix. Disclosure following shortly.
2014-05-06Fixed #22586 -- Added LANGUAGE_SESSION_KEY to __all__.Tim Graham
Thanks david.fischer.ch at gmail.com for the report.
2014-05-02Fixed #22565 -- Prevented pgettext_lazy crash with bytestring inputClaude Paroz
Thanks ygbo for the report.
2014-04-30flake8 fixes.Tim Graham
2014-04-30Refactored DjangoTranslation classDoug Beck
Also fixes #18192 and #21055.
2014-04-29Use the new implementation of `six.with_metaclass`.Simon Charette
No more `NewBase` horrors. Thanks to bendavis78 for his work on merging this into six.
2014-04-26Fix many many typos in comments throughout the codebaseAlex Gaynor
2014-04-22Use the stdlib's compare_digest for constant time comparisons when availableAlex Gaynor
2014-04-21Appeased flake8 2.1.0.Aymeric Augustin
2014-04-17Typo fixAlex Gaynor
2014-04-17Use the stdlib's PBKDF2 implementation when available.Alex Gaynor
This is a bit faster than ours, which is good, because it lets you increase the iteration counts. This will be used on Python 3.4+, and, pending the acceptance of PEP466, on newer Python 2.7s.
2014-04-03Refactored and commented strip_tags utilityTomasz Wysocki
2014-04-02Added an explanatory comment. Refs #22017Alex Gaynor
2014-04-02Revert "Merge pull request #2508 from tomwys/patch-1"Alex Gaynor
This reverts commit c45607e9395ffd05c2cff454fdb55b3ab05dc0e3, reversing changes made to 9769337ca855f4831c855d6663ff3f688ee1652d.
2014-04-02Merge pull request #2509 from tomwys/patch-2Alex Gaynor
Refactor. Stop using memory for list copies.
2014-04-02Refactor. Stop using memory for list copies.Tomasz Wysocki
2014-04-02Don't copy list for iteration.Tomasz Wysocki
2014-03-30Corrected many style guide violations that the newest version of flake8 catchesAlex Gaynor
2014-03-29Increased memoization cache size for language codes.Aymeric Augustin
There may be more than 100 (default maxsize) commonly seen xx-yy values on some sites. The additional memory consumption isn't significant. Also added a comment explaining why this cache must have a maxsize.
2014-03-27Corrected deprecation warnings.Tim Graham
2014-03-27Fixed a deprecation warning with the HTMLParser safe argument.Tim Graham
refs 6ca6c36f82b97eafeada61384b2e2f1d0587da86
2014-03-27Add a useful stacklevel to some RemovedInDjango19WarningsChris Beaven
2014-03-26Fixed Python 3.4 test failure.Tim Graham
2014-03-24Updated six to 1.6.1.Tim Graham
2014-03-22Advanced deprecation warnings for 1.8.Aymeric Augustin
2014-03-22Removed an unused variable.Alex Gaynor
2014-03-22Improved strip_tags and clarified documentationClaude Paroz
The fact that strip_tags cannot guarantee to really strip all non-safe HTML content was not clear enough. Also see: https://www.djangoproject.com/weblog/2014/mar/22/strip-tags-advisory/
2014-03-21Removed PIL compatability layer per deprecation timeline.Tim Graham
refs #19934.