summaryrefslogtreecommitdiff
path: root/docs/ref/utils.txt
AgeCommit message (Collapse)Author
2014-08-11[1.7.x] Added a warning that remove_tags() output shouldn't be considered safe.Tim Graham
Backport of 7efce77de2 from master
2014-07-16[1.7.x] Alphabetized django.utils sections.Corey Farwell
Backport of e7827b9494 from master
2014-05-13[1.7.x] Fixed #22618 -- Improved import_string example.Tim Graham
Thanks ewjoachim for the sugggestion. Backport of c501662f3c from master
2014-04-26[1.7.x] Updated doc links to point to Python 3 documentationClaude Paroz
Backport of 680a0f08b from master.
2014-04-22[1.7.x] Various documentation typo/spelling fixesMarti Raudsepp
Errors detected by Topy (https://github.com/intgr/topy), all changes verified by hand. Backport of 11d453bcad from master
2014-03-22[1.7.x] Improved 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/ Backport of 6ca6c36f82b from master.
2014-03-03Removed doc newlines added in previous commit that caused build errors.Tim Graham
2014-03-03Fixed some typos and formatting issues in docs.Rodolfo Carvalho
2014-02-28Fixed spelling mistakes in docs.Tim Graham
2014-02-22Fixed #22120 -- Documented persistent activation of languages and cleaned up ↵Erik Romijn
language session key use
2014-02-08Fixed #21674 -- Deprecated the import_by_path() function in favor of ↵Berker Peksag
import_string(). Thanks Aymeric Augustin for the suggestion and review.
2013-11-08Added missing parameter in npgettext_lazy docsglts
2013-10-30Fixed #21316 -- Documented that modifying safe strings makes them unsafe.Tim Graham
Thanks dev@simon.net.nz for the suggestion and vijay_shanker for the patch.
2013-10-29Mark this as a python code-blockAlex Gaynor
2013-09-20Fixed #20877 -- added a performance optimization guideevildmp
2013-09-09Fixed #17262 -- Refactored tzinfo implementations.Aymeric Augustin
This commit deprecates django.utils.tzinfo in favor of the more recent django.utils.timezone which was introduced when Django gained support for time zones.
2013-08-19Removed versionadded/changed annotations for 1.5Tim Graham
2013-08-08Added more on @cached_property, refs #20870Daniele Procida
2013-08-08Fixed #20870 -- Documented django.utils.functional.cached_propertyDaniele Procida
2013-08-04Deprecated SortedDict (replaced with collections.OrderedDict)Curtis Maloney
Thanks Loic Bistuer for the review.
2013-07-19Fixed #14656 -- Added Atom1Feed `published` elementMatt Deacalion Stevens
Some feed aggregators make use of the `published` element as well as the `updated` element (within the Atom standard -- http://bit.ly/2YySb). The standard allows for these two elements to be present in the same entry. `Atom1Feed` had implemented the `updated` element which was incorrectly taking the date from `pubdate`.
2013-07-18Atom specification URL updatedMatt Deacalion Stevens
Changed to the URL of the official RFC for Atom, since Atomenabled.org is just a holding page.
2013-07-05Fixed #20224 -- Update docs examples which mention __unicode__Claude Paroz
Thanks Marc Tamlyn and Tim Graham for the review.
2013-06-29More import removalsClaude Paroz
Following the series of commits removing deprecated features in Django 1.7, here are some more unneeded imports removed and other minor cleanups.
2013-06-28Removed django.utils.encoding.StrAndUnicode class, deprecated in Django 1.5.Ramiro Morales
2013-06-28Removed insert(), value_for_insert() SortedDict methods deprecated in Django ↵Ramiro Morales
1.5.
2013-06-26Fixed #14881 -- Modified password reset to work with a non-integer UserModel.pk.Tim Graham
uid is now base64 encoded in password reset URLs/views. A backwards compatible password_reset_confirm view/URL will allow password reset links generated before this change to continue to work. This view will be removed in Django 1.7. Thanks jonash for the initial patch and claudep for the review.
2013-06-12Fixed #20591: added version in docs for utils.module_loading.import_by_path.Baptiste Darthenay
2013-06-06Explained that timezone.now() always returns times in UTC.Jacob Kaplan-Moss
The docs were ambiguous about the time zone for now(), leading people to assume that it would be the current time zone rather that UTC.
2013-05-23Fixed #19237 (again) - Made strip_tags consistent between Python versionsClaude Paroz
2013-05-16Make the example usage of import_by_path less confusing.Marc Tamlyn
Using import_by_path to import import_by_path is a really odd use case and makes the code example difficult to read.
2013-04-02Fixed #19748 - Documented django.utils.module_loading.import_by_pathTim Graham
2013-03-28Fixed #20146 -- Updated removed_tags exampleferhat elmas
2013-01-25Fixed #19577 - Added HTML escaping to admin examples.Tim Graham
Thanks foo@ for the report and Florian Apolloner for the review.
2013-01-24Fixed a typo.Florian Apolloner
2013-01-02Fixed #19516 - Fixed remaining broken links.Tim Graham
Added -n to sphinx builds to catch issues going forward.
2012-12-29Removed versionadded/changed annotations dating back to 1.4.Aymeric Augustin
2012-12-26Fixed broken links, round 3. refs #19516Tim Graham
2012-12-16Fixed #18718 - Documented django.utils.encoding.filepath_to_uriTim Graham
2012-09-30Fixed #15338 - Documented django.utils.decoratorsTim Graham
2012-08-18Introduced force_bytes and force_str.Aymeric Augustin
This is consistent with the smart_* series of functions and it's going to be used by the next commit.
2012-08-18Fixed #14516 -- Extract methods from removetags and slugify template filtersMarc Tamlyn
Patch by @jphalip updated to apply, documentation and release notes added. I've documented strip_tags as well as remove_tags as the difference between the two wouldn't be immediately obvious.
2012-08-18[py3] Ported django.utils.safestring.Aymeric Augustin
Backwards compatibility aliases were created under Python 2.
2012-08-12[py3] Added python_2_unicode_compatible decorator.Aymeric Augustin
2012-08-07[py3] Ported django.utils.encoding.Aymeric Augustin
* Renamed smart_unicode to smart_text (but kept the old name under Python 2 for backwards compatibility). * Renamed smart_str to smart_bytes. * Re-introduced smart_str as an alias for smart_text under Python 3 and smart_bytes under Python 2 (which is backwards compatible). Thus smart_str always returns a str objects. * Used the new smart_str in a few places where both Python 2 and 3 want a str.
2012-08-03[py3] Removed uses of sys.maxint under Python 3.Aymeric Augustin
Also fixed #18706: improved exceptions raised by int_to_base36.
2012-07-14Deprecate two methods (which I seriously doubt anyone ever used, but they ↵Alex Gaynor
were documented so...) because they cannot be implemented efficiently on top of collections.SortedDict in Python 2.7 and up.
2012-07-03Added 'format_html' utility for formatting HTML fragments safelyLuke Plant
2012-07-03Documented utils.html.escape and conditional_escapeLuke Plant
2012-06-28Updated obsolete links in the documentationClaude Paroz