diff options
| author | Tim Graham <timograham@gmail.com> | 2014-11-19 12:22:23 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-01-17 08:40:23 -0500 |
| commit | c820892eed9ea10879270e64e8109dc44829756a (patch) | |
| tree | 3edb914f3eeac75acb72bc60a94b991f9b211902 /docs/ref | |
| parent | 41f0d3d3bc8b0a6831530e1176c6415f9ba45b0b (diff) | |
Removed django.utils.datastructures.SortedDict per deprecation timeline.
Diffstat (limited to 'docs/ref')
| -rw-r--r-- | docs/ref/utils.txt | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/docs/ref/utils.txt b/docs/ref/utils.txt index 55184c277b..d1881bb830 100644 --- a/docs/ref/utils.txt +++ b/docs/ref/utils.txt @@ -97,34 +97,6 @@ need to distinguish caches by the ``Accept-language`` header. cache, this just means that we have to build the response once to get at the Vary header and so at the list of headers to use for the cache key. -``django.utils.datastructures`` -=============================== - -.. module:: django.utils.datastructures - :synopsis: Data structures that aren't in Python's standard library. - -.. class:: SortedDict - -.. deprecated:: 1.7 - ``SortedDict`` is deprecated and will be removed in Django 1.9. Use - :class:`collections.OrderedDict` instead. - - The :class:`django.utils.datastructures.SortedDict` class is a dictionary - that keeps its keys in the order in which they're inserted. - -Creating a new SortedDict -------------------------- - -Creating a new ``SortedDict`` must be done in a way where ordering is -guaranteed. For example:: - - SortedDict({'b': 1, 'a': 2, 'c': 3}) - -will not work. Passing in a basic Python ``dict`` could produce unreliable -results. Instead do:: - - SortedDict([('b', 1), ('a', 2), ('c', 3)]) - ``django.utils.dateparse`` ========================== |
