| Age | Commit message (Collapse) | Author |
|
|
|
This starts the deprecation period for PIL (support to end in 1.8).
|
|
Thanks to Preston Timmons for the bulk of the work on the patch, especially
updating Django's own test suite to comply with the requirements of the new
runner. Thanks also to Jannis Leidel and Mahdi Yusuf for earlier work on the
patch and the discovery runner.
Refs #11077, #17032, and #18670.
|
|
|
|
|
|
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.
|
|
|
|
Thanks Marc Aymerich for the report and the initial patch.
|
|
Thanks @carljm for the review.
|
|
|
|
|
|
This was a regression due to unicode_literals usage. Thanks Ivan
Virabyan for the report and the initial patch.
|
|
Python 2.6 has some different behaviour when checking
isinstance(foo, collections.Iterator).
|
|
Thanks jrothenbuhler for draft patch, Konark Modi for updates.
|
|
Thanks blaze33 for the patch.
|
|
Thanks Roman Gladkov and Zbigniew Siciarz.
|
|
|
|
|
|
When the 'invalid' error message is set at field level, it masks
the error message raised by the validator, if any.
|
|
The sql/query.py add_q method did a lot of where/having tree hacking to
get complex queries to work correctly. The logic was refactored so that
it should be simpler to understand. The new logic should also produce
leaner WHERE conditions.
The changes cascade somewhat, as some other parts of Django (like
add_filter() and WhereNode) expect boolean trees in certain format or
they fail to work. So to fix the add_q() one must fix utils/tree.py,
some things in add_filter(), WhereNode and so on.
This commit also fixed add_filter to see negate clauses up the path.
A query like .exclude(Q(reversefk__in=a_list)) didn't work similarly to
.filter(~Q(reversefk__in=a_list)). The reason for this is that only
the immediate parent negate clauses were seen by add_filter, and thus a
tree like AND: (NOT AND: (AND: condition)) will not be handled
correctly, as there is one intermediary AND node in the tree. The
example tree is generated by .exclude(~Q(reversefk__in=a_list)).
Still, aggregation lost connectors in OR cases, and F() objects and
aggregates in same filter clause caused GROUP BY problems on some
databases.
Fixed #17600, fixed #13198, fixed #17025, fixed #17000, fixed #11293.
|
|
|
|
return a QuerySet.
|
|
|
|
Thanks to Florian Hahn for the patch
|
|
Refs #19933.
|
|
Thanks minddust for the report.
|
|
|
|
Thanks Michael Jung, Charl Botha and Florian Apolloner for review
and help on the patch.
|
|
|
|
Thanks to choongmin for the original patch.
|
|
Classes overriding __eq__ need a __hash__ such that equal objects have
the same hash.
Thanks akaariai for the report and regebro for the patch.
|
|
settings.LANGUAGE_CODE
|
|
Made cached_property to behave as property when accessed via class.
|
|
|
|
|
|
|
|
For languages with non-breaking space as thousand separator,
standard space input should also be allowed, as few people know
how to enter non-breaking space on keyboards. Refs #17217.
Thanks Alexey Boriskin for the report and initial patch.
|
|
Thanks sneawo for the report and Jonathan Loy for the patch.
|
|
This is required by the tzinfo API, see Python's docs.
Also made _get_timezone_name deterministic.
|
|
|
|
Thanks Pablo Recio for the report. Refs #19237.
|
|
Thanks @rtnpro for the patch!
|
|
Thanks Carl Meyer for the report.
|
|
Fixed #19160 (again). Thanks Alexey Boriskin.
|
|
Thanks Jonathan Liuti for the report and the initial patch, and
Simon Charette for the review.
|
|
Thanks rafales.
|
|
Many thanks to Alexey Boriskin, Claude Paroz and Julien Phalip.
|
|
comments.
They are simply ignored now. This allows for a more correct behavior when
they are placed before translatable constructs on the same line.
Previously, the latter were wrongly ignored because the former were
preserved when converting template code to the internal Python-syntax
form later fed to xgettext but Python has no ``/* ... */``-style
comments.
Also, special comments directed to translators are now only taken in
account when they are located at the end of a line. e.g.::
{# Translators: ignored #}{% trans "Literal A" %}{# Translators: valid, associated with "Literal B" below #}
{% trans "Literal B" %}
Behavior of ``{% comment %}...{% endcomment %}``tags remains unchanged.
Thanks juneih at redpill-linpro dot com for the report and Claude for
his work on the issue.
|