summaryrefslogtreecommitdiff
path: root/django/utils
AgeCommit message (Collapse)Author
2015-06-19Fixed #20197 -- Made XML serializer fail loudly when outputting ↵Claude Paroz
unserializable chars Thanks Tim Graham for the review.
2015-06-18Removed support for Python 3.3.Tim Graham
2015-06-15Fixed #24979 -- Removed usage of inspect.getargspec().Tim Graham
2015-06-15Removed django.utils.functional.total_ordering()Tim Graham
2015-06-15Fixed flake8 warnings on Python 3.Tim Graham
2015-06-13Fixed #24978 -- Escaped special characters in loaddata fixture pathsMoritz Sichert
2015-06-12Fixed #24965 -- Made LiveServerTestCase.live_server_url accessible from classMoritz Sichert
2015-06-06Fixed ImportError message in utils.module_loading.import_string()Tomasz Kontusz
2015-06-05Fixed #24927 -- Used python_2_unicode_compatible from sixMatthew Somerville
2015-06-04Fixed #19210 -- Added leap year support to django.utils.timesince()Raphael Michel
2015-06-04Fixed #24728 -- Renamed mime_type to content_type for syndication feedsRaphael Michel
Renamed the mime_type properties of RssFeed and Atom1Feed to content_type and start deprecation for the old names.
2015-06-02Fixed #24230 -- Added translated language name for i18n template tag/filter.Tomáš Ehrlich
2015-06-02Fixed #24897 -- Allowed using choices longer than 1 day with DurationFieldzauddelig
2015-05-27Fixed #24836 -- Made force_text() resolve lazy objects.Tim Graham
2015-05-13Removed unnecessary arguments in .get method callsPiotr Jakimiak
2015-05-07Fixed logging regression introduced in bbe28496d32f76ca161f5c33787d6ad62267fcc6Tim Graham
2015-05-02Optimized two functions slightly.Aymeric Augustin
This avoids calling date.tzinfo.utcoffset(date) twice. It's also robust to cases where that function returns None -- which never happens in practice :-)
2015-05-02Simplified the implementation of timezone.is_aware/naive.Aymeric Augustin
2015-04-28Fixed #13008 -- Added more Cache-Control headers to never_cache() decorator.Markus Bertheau
2015-04-24Fixed #24063 -- Allowed locale variants supported by gettext.Michal Čihař
The locale code can contain a variant after @, so allowed that.
2015-04-24Fixed #22598 -- Allowed make_aware() to work with ambiguous datetimeJosh Smeaton
2015-04-24Fixed #24526 -- Combined django.request/security loggers with the root logger.Tim Graham
Thanks Carl Meyer for review.
2015-04-18Removed cases of six.iter* wrapped in a list()Curtis Maloney
There's absolutely no advantage [and a mild performance hit] to using six.iter* in these cases.
2015-04-06Fixed #24562 -- Renamed get_major_version() to get_main_version()Tim Graham
This reflects the actual behavior of the method.
2015-04-04Fixed #24569 -- Made some translation functions accept None valueClaude Paroz
get_language() can return None when translations are deactivated. Thanks Nicola Peduzzi for the reporti and Tim Graham for the review.
2015-03-27Fixed #24469 -- Refined escaping of Django's form elements in non-Django ↵Moritz Sichert
templates.
2015-03-24Removed getLogger alias in django.utils.log.Tim Graham
2015-03-24Removed the null handler in Django's default logging config.Tim Graham
It's unused since f0f327bb.
2015-03-23Fixed #16362 -- Allowed lookaround assertions in URL patterns.Bas Peschier
2015-03-21Fixed #24515 -- Fixed DjangoTranslation plural handlingClaude Paroz
2015-03-20Cleaned up the template debug implementation.Preston Timmons
This patch does three major things: * Merges the django.template.debug implementation into django.template.base. * Simplifies the debug implementation. The old implementation copied debug information to every token and node. The django_template_source attribute was set in multiple places, some quite hacky, like django.template.defaulttags.ForNode. Debug information is now annotated in two high-level places: * Template.compile_nodelist for errors during parsing * Node.render_annotated for errors during rendering These were chosen because they have access to the template and context as well as to all exceptions that happen during either the parse or render phase. * Moves the contextual line traceback information creation from django.views.debug into django.template.base.Template. The debug views now only deal with the presentation of the debug information.
2015-03-18Made is_safe_url() reject URLs that start with control characters.Tim Graham
This is a security fix; disclosure to follow shortly.
2015-03-18Fixed an infinite loop possibility in strip_tags().Tim Graham
This is a security fix; disclosure to follow shortly.
2015-03-10Fixed #24471 -- Enhanced urlize regex to exclude quotes and angle brackets.Tim Graham
2015-03-10Fixed escaping regression in urlize filter.Tim Graham
Now that the URL is always unescaped as of refs #22267, we should re-escape it before inserting it into the anchor.
2015-03-09Fixed #24382 -- Allowed unicode chars inside formatted numbersClaude Paroz
Thanks Jacob Rief for the report and Tim Graham for the review.
2015-03-08Fixed #23838 -- added missing `__iter__` to LazyObjectRik
2015-03-06Fixed urlize regression with entities in query stringsClaude Paroz
Refs #22267. Thanks Shai Berger for spotting the issue and Tim Graham for the initial patch.
2015-03-04Moved definition of chunks out of timesince function.Benjamin Wohlwend
This speeds up the timesince function/filter substantially.
2015-02-28Fixed #24413 -- Prevented translation fallback for EnglishClaude Paroz
Thanks Tomasz Kontusz for the report, Baptiste Mispelon for analysis and Tim Graham for the review.
2015-02-23Prevented makemigrations from writing in sys.path[0].Aymeric Augustin
There's no reason to assume that sys.path[0] is an appropriate location for generating code. Specifically that doesn't work with extend_sys_path which puts the additional directories at the end of sys.path. In order to create a new migrations module, instead of using an arbitrary entry from sys.path, import as much as possible from the path to the module, then create missing submodules from there. Without this change, the tests introduced in the following commit fail, which seems sufficient to prevent regressions for such a refactoring.
2015-02-22Removed rmtree_errorhandler.Aymeric Augustin
The stated reason for its introduction in d18d37ce no longer applies since Django's code repository was switched from Subversion to git. Furthermore it never had any effect because shutil.rmtree ignores its onerror argument when ignore_errors is True. The reason for its use in template management commands is unclear.
2015-02-17Refs #24324 -- Fixed UnicodeDecodeError in template_backends testsTim Graham
The message for the SuspiciousFileOperation exception needs to be a unicode string.
2015-02-12Fixed #24321 -- Improved `utils.http.same_origin` compliance with RFC6454Lukas Klein
2015-02-09Removed some obsolete absolute_imports.Tim Graham
2015-02-08Optimized allow_lazy() by not generating a new lazy wrapper on each invocation.Alex Gaynor
This dramatically improves performance on PyPy. The following benchmark: python -mtimeit -s "from django.utils.functional import allow_lazy; from django.utils.translation import ugettext_lazy; f = allow_lazy(lambda s: s, str)" "f(ugettext_lazy('abc'))" goes from 390us per loop to 165us.
2015-02-08Fixed #24181 -- Fixed multi-char THOUSAND_SEPARATOR insertionVarun Sharma
Report and original patch by Kay Cha.
2015-02-06Sorted imports with isort; refs #23860.Tim Graham
2015-02-06Removed django-2to3.pyTim Graham
Aymeric says, "It was fun to write, but I don't think it's very useful."
2015-02-05Removed old import aliases.Tim Graham