summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-05-21Fixed typo in docs/releases/3.0.txt.Mariusz Felisiak
2019-05-21Refs #29396, #30494 -- Reduced code duplication in year lookups.Simon Charette
2019-05-21Fixed #29396 -- Added indirect values support to __year lookups.Simon Charette
Thanks Windson Yang for the initial patch.
2019-05-21Fixed #30494 -- Disabled __year lookup optimization for indirect values.Simon Charette
The previous heuristics were naively enabling the BETWEEN optimization on successful cast of the first rhs SQL params to an integer while it was not appropriate for a lot of database resolved expressions. Thanks Alexey Chernov for the report.
2019-05-20Fixed #27635 -- Used secrets module in django.utils.crypto.Nick Pope
2019-05-20Refs #27635 -- Removed fallback when SystemRandom() isn't available that ↵Nick Pope
doesn't work. Fallback was untested and likely never triggered.
2019-05-20Refs #30062 -- Corrected UniqueConstraint signature in docs.GwynBleidD
2019-05-20Changed poll_id to poll_ids in examples of custom management commands.mentix02
2019-05-20Fixed #30488 -- Removed redundant Coalesce call in SQL generated by ↵Thomasina Lee
SearchVector. Regression in 405c8363362063542e9e79beac53c8437d389520.
2019-05-18Fixed #30463 -- Fixed crash of deprecation message when Meta.ordering ↵ruchit2801
contains expressions. Regression in 1b1f64ee5a78cc217fead52cbae23114502cf564.
2019-05-17Changed docs to link to Python's description of iterable.Jon Dufresne
2019-05-17Fixed #25633 -- Updated macOS Spatialite installation instructions.Daniel Hepper
Updated the Spatialite installation instruction to refer to the latest available version from KyngChaos, as Gaia-SINS does not provide MacOS binaries anymore.
2019-05-17Fixed #30395 -- Doc'd a limitation of ModelForm.Meta.widgets.Tobias Kunze
2019-05-17Fixed #30199 -- Adjusted QuerySet.get_or_create() docs to highlight ↵Alex
atomicity warning.
2019-05-17Fixed #30196 -- Made FileResponse set Content-Disposition inline if filename ↵ShingenPizza
is available.
2019-05-17Fixed #30453 -- Fixed crash of simple_tag() and inclusion_tag() when ↵Batuhan Taşkaya
function is wrapped. getfullargspec() doesn't work with wrapped functions.
2019-05-17Fixed #30220 -- Added support for headless mode in selenium tests.Johannes Hoppe
2019-05-17Fixed #30459 -- Delegated hide/show JS toggle to parent div.Claude Paroz
Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es>
2019-05-16Fixed #30482 -- Prevented unnecessary evaluation of lookup.queryset in ↵Iain Watts
prefetch_related_objects().
2019-05-16Added filename caption to LOGGING documentation examples.Curtis Maloney
2019-05-16Fixed typo in expression documentation.Vyacheslav Ver
2019-05-16Fixed #30483 -- Switched test requirement to psycopg2 package.Jon Dufresne
2019-05-15Changed tuple choices to list in docs.Jon Dufresne
2019-05-15Fixed #30316 -- Added source code link to the default logging configuration ↵Ahisahar Pretel
in logging docs.
2019-05-15Fixed mis-capitalisation in comment.Ally Weir
2019-05-15Refs #27685 -- Logged unexpected Watchman autoreloader errors.Daniel Hahler
2019-05-14Ensured that our django checkout is in the pythonpath during tests.Florian Apolloner
This fixes an issue with postgres_tests.test_integration.PostgresIntegrationTests which would not find Django in a CI run.
2019-05-13Fixed #30437 -- Clarified that urlpatterns can be a sequence.Jonatas C. Damasceno
2019-05-13Refs #28593 -- Changed url() to path() in comments following URL routing ↵Tobias Bengfort
changes.
2019-05-13Fixed #30436 -- Added check that on_delete is callable in ForeignKey and ↵Rob
OneToOneField.
2019-05-12Fixed #6785 -- Made QuerySet.get() fetch a limited number of rows.Amir Hadi
Co-authored-by: Tim Graham <timograham@gmail.com> Co-authored-by: Patryk Zawadzki <patrys@room-303.com> Co-Authored-By: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2019-05-10Fixed #30470 -- Added assertHTMLEqual() support for all self closing tags.Jon Dufresne
Support for the following tags was added: area, embed, param, track, and wbr. The full list of self closing tags is documented at: https://html.spec.whatwg.org/#void-elements
2019-05-09Fixed #30468 -- Fixed assertHTMLEqual() to handle all ASCII whitespace in a ↵Jon Dufresne
class attribute.
2019-05-09Refs #27804 -- Used subTest() in HTMLEqualTests.test_self_closing_tags. Jon Dufresne
2019-05-09Fixed comment typo.luzpaz
2019-05-09Fixed #30310 -- Added support for looking up HttpHeaders.headers using ↵Troon
underscores.
2019-05-09Refs #30399 -- Made assertHTMLEqual normalize character and entity references.Jon Dufresne
2019-05-08Used time.monotonic() instead of time.time() where applicable.Przemysław Suliga
time.monotonic() available from Python 3.3: - Nicely communicates a narrow intent of "get a local system monotonic clock time" instead of possible "get a not necessarily accurate Unix time stamp because it needs to be communicated to outside of this process/machine" when time.time() is used. - Its result isn't affected by the system clock updates. There are two classes of time.time() uses changed to time.monotonic() by this change: - measuring time taken to run some code. - setting and checking a "close_at" threshold for for persistent db connections (django/db/backends/base/base.py).
2019-05-08Added stub release notes for 2.2.2.Mariusz Felisiak
2019-05-08Fixed #29056 -- Fixed HTML5 validation of required SelectDateWidget.Hasan Ramezani
placeholder is required for "select" with "required" attribute.
2019-05-08Refs #30462 -- Added test for conditional aggregation on annotated subquery.Mariusz Felisiak
2019-05-08Removed deprecated license-file from setup.cfg.Jon Dufresne
Starting with wheel 0.32.0 (2018-09-29), the "license-file" option is deprecated. LICENSE is now included automatically.
2019-05-08Moved unnecessarily nested import.Carlton Gibson
2019-05-08Removed redundant check from StaticFilesHandler.Carlton Gibson
2019-05-08Refs #27753 -- Deprecated django.utils.text.unescape_entities().Jon Dufresne
The function was undocumented and only required for compatibility with Python 2. Code should use Python's html.unescape() that was added in Python 3.4.
2019-05-07Fixed #30349 -- Fixed QuerySet.exclude() on FilteredRelation.Rob
Using annotated FilteredRelations raised a FieldError when coupled with exclude(). This is due to not passing filtered relation fields to the subquery created in split_exclude(). We fixed this issue by passing the filtered relation data to the newly created subquery. Secondly, in the case where an INNER JOIN is used in the excluded subquery, the ORM would trim the filtered relation INNER JOIN in attempt to simplify the query. This will also remove the ON clause filters generated by the FilteredRelation. We added logic to not trim the INNER JOIN if it is from FilteredRelation.
2019-05-07Removed unnecessary line in DebugLexer.tokenize().sanchjat
2019-05-07Fixed #30447 -- Added 'is_in_european_union' in GeoIP2.city() dict.Chris Adkins
2019-05-07Fixed typo in docs/ref/django-admin.txt.Daniel Musketa
2019-05-07Fixed #30444 -- Moved SQL generation for tables to ↵Rob Golding-Day
BaseDatabaseSchemaEditor.table_sql().