| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
utils.datastructures.OrderedSet.__len__()
|
|
|
|
| |
deprecation timeline.
|
|
|
|
| |
deprecation timeline; refs #18659.
|
|
|
|
| |
generators and dict comprehension
|
|
|
|
|
|
| |
OrderedSet.__bool__
This also defines QuerySet.__bool__ for consistency though this should not have any consequence as bool(qs) used to fallback on QuerySet.__len__ in Py3.
|
|
|
|
|
|
|
|
|
| |
dictionary-type setting"
This reverts commit 66757fee7e921ad4c35e0b3f80c25e026100b31c.
Discussions have led to think that this functionality does not
bring significant benefits to justify the added complexity.
Read also discussions on ticket #22734.
|
|
|
|
|
|
|
|
| |
dictionary-type setting
This change is needed for upcoming changes where settings might be
grouped in a parent dictionary.
Thanks Tim Graham for the review.
|
|
|
|
|
|
|
| |
to-be-removed-in-django-XX warnings
Thanks Anssi Kääriäinen for the idea and Simon Charette for the
review.
|
| |
|
| |
|
| |
|
|
|
|
| |
Thanks Aymeric Augustin for the suggestion.
|
|
|
|
|
|
| |
less verbose.
Thanks margieroginski for the suggestion.
|
|
|
|
| |
comprehensions.
|
|
|
|
|
|
|
| |
inside dict() and tuple()
Thanks jeroen.pulles at redslider.net for the suggestion and
helper script.
|
| |
|
|
|
|
| |
typo fixes
|
|\
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
schema-alteration
Conflicts:
django/core/management/commands/flush.py
django/core/management/commands/syncdb.py
django/db/models/loading.py
docs/internals/deprecation.txt
docs/ref/django-admin.txt
docs/releases/1.7.txt
|
| |
| |
| |
| |
| |
| | |
collections.OrderedDict)
Thanks Loic Bistuer for the review.
|
|\| |
|
| |
| |
| |
| | |
deprecated in Django 1.5.
|
|\| |
|
| |
| |
| |
| |
| |
| | |
KeyError message
Thanks mark.harviston et gmail.com for the report.
|
| |
| |
| |
| |
| | |
MergeDict evaluates now to False if all contained dicts are empty.
Thanks til for the report and the initial patch.
|
|/ |
|
|
|
|
| |
Also added stacklevel argument, fixed #18127.
|
|
|
|
| |
Refs #19276
|
|
|
| |
Iterators cannot be reversed easily without this method.
|
| |
|
|
|
|
|
|
| |
The keys/items/values methods return iterators in Python 3, and the
iterkeys/items/values methods don't exist in Python 3. The behavior
under Python 2 is unchanged.
|
|
|
|
|
|
| |
It was broken by a seemingly innocuous change in MultiValueDict.
Document the pitfall for now. This is fragile and should be
considered for refactoring.
|
|
|
|
|
|
| |
This keeps the implementation of setdefault and setlistdefault
consistent. Also it's marginally faster than looking up the value
again.
|
|
|
|
| |
argument order for the warnings.
|
| |
|
| |
|
|
|
|
| |
ever used, but they were documented so...) because they cannot be implemented efficiently on top of collections.SortedDict in Python 2.7 and up.
|
|
|
|
|
|
| |
- Use super().
- Don't poke at internals.
- Don't override methods for no reason.
|
|
|
|
|
|
|
|
| |
Fixed #18175 -- Calling SortedDict.__copy__() resulted in changes to
the original dictionary. The reason was likely related to subclassing
dict.
Thanks to linovia for report and patch.
|
|
|
|
|
|
| |
MultiValueDict by using append instead of copy and by minimizing the number of dict lookups. Refs #736.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17464 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
|
|
|
|
|
| |
MultiValueDict (such as a QueryDict) to a dictionary of key-value pairs. Thanks, oinopion and hvdklauw.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16418 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
|
|
|
|
|
| |
`MultiValueDict.getlist` method (the base class for `QueryDict`). Many thanks to mk and andrewebdev.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16260 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
|
|
|
|
|
| |
don't support that version. Refs #15702 -- thanks to jonash for the patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15927 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
|
|
|
|
|
| |
consistant with all other copies.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@14366 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
|
|
|
|
|
| |
Thanks, Alex Gaynor.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@13742 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
|
|
|
|
|
|
|
| |
MergeDict.
Thanks, john@calixto.net. Fixed #3508.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@13721 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
|
|
|
|
|
| |
MergeDict. Thanks, Gisle Aas.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12498 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
|
|
|
|
|
| |
instances instead of old-style raising exception classes plus a comma. Good for the future Python 3 conversion
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12180 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
|
|
|
|
|
| |
to SortedDict so that the data source can be read twice. Thanks to gsf for the report, and Alex for the patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12064 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
|
|
|
|
|
| |
explode on Python 2.4. Thanks, Jeremy Dunck.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@11901 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
|
|
|
|
|
| |
SortedDict. Thanks to Alex Gaynor and Armin Ronacher for the report and patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@11815 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|