summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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().
2019-05-07Refs #26678 -- Added tests for using the field the relation points to with ↵Tobias Kunze
RelatedManager.add()/remove()/set().
2019-05-07Fixed #26678 -- Doc'd that RelatedManager.add()/remove()/set() accepts the ↵Tobias Kunze
field the relation points to.
2019-05-07Always remove required attribute in SelectFilter2.js (#11331)Ben Muschol
Fixes bug on browsers which do support the required attribute but not the :valid pseudo-selector
2019-05-07Readded comment about the default params of cursor.execute().Daniel Hahler
It was removed in in 728548e483a5a3486939b0c8e62520296587482e.
2019-05-06Fixed #29352 -- Allowed specifying a Feed language.Tobias Kunze
2019-05-06Fixed #30339 -- Made Model.delete(keep_parents=True) preserves nested parent ↵Stephen Brown
reverse relationships. Thanks Simon Charette for the review.
2019-05-03Ignored pywatchman.SocketTimeout in Watchman autoreloader.Daniel Hahler
Bumped minimum supported pywatchman version to 1.2.0. These exceptions don't require checking a server status.
2019-05-03Fixed NonQueryWindowTests.test_unsupported_backend() on MySQL.Mariusz Felisiak
2019-05-03Fixed #20122 -- Made pluralize template filter return '' on invalid input.Tobias Kunze
2019-05-03Refs #20122 -- Corrected documentation of pluralize template filter.Tobias Kunze
2019-05-03Refs #11929 -- Fixed ordering of test YAML dumps.Tobias Kunze
Thanks Nick Pope for the review.
2019-05-03Removed unused YamlSerializerTestCase.fwd_ref_str.Mariusz Felisiak
Unused since its introduction in febd5aeec604198b2e374a33552b0c365096fd45.
2019-05-03Fixed #29692 -- Fixed removing ordering parts for multiline RawSQL expressions.can
2019-05-02Fixed #29529 -- Allowed models.fields.FilePathField to accept a callable path.Mykola Kokalko
2019-05-02Added tests for setting models.fields.FilePathField.path.Mykola Kokalko
2019-05-02Fixed #30396 -- Added system checks for uniqueness of indexes and ↵can
constraints names. Co-Authored-By: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2019-05-01Fixed #30409 -- Allowed using foreign key's attnames in ↵zeyneloz
unique/index_together and Index's fields.
2019-05-01Added release date for 2.2.1.Mariusz Felisiak
2019-04-30Fixed #30245 -- Added -k option to DiscoverRunner.François Freitag
2019-04-30Fixed #30412 -- Fixed crash when adding check constraints with OR'ed ↵can
condition on Oracle and SQLite.
2019-04-30Fixed #30418 -- Added --skip-checks management command option.Jon Dufresne
2019-04-30Fixed #20629 -- Rephrased custom user models admonition.Tobias Kunze
2019-04-30Fixed #30408 -- Fixed crash when adding check constraints with LIKE operator ↵Simon Charette
on Oracle and PostgreSQL. The LIKE operator wildcard generated for contains, startswith, endswith and their case-insensitive variant lookups was conflicting with parameter interpolation on CREATE constraint statement execution. Ideally we'd delegate parameters interpolation in DDL statements on backends that support it but that would require backward incompatible changes to the Index and Constraint SQL generating methods. Thanks David Sanders for the report.
2019-04-29Fixed #30148 -- Logged COPY ... TO statements in connection.queries on ↵kingbuzzman
PostgreSQL.
2019-04-29Refs #30148 -- Moved logging queries in CursorDebugWrapper to debug_sql() ↵kingbuzzman
contextmanager.
2019-04-29Fixed #30323 -- Fixed detecting changes by autoreloader when using StatReloader.Tom Forbes
2019-04-29Refs #30323 -- Prevented crash of autoreloader when ↵Tom Forbes
get_resolver().urlconf_module raising an exception.
2019-04-29Refs #30323 -- Simplified utils.autoreload.ensure_echo_on().Tom Forbes
2019-04-29Added tests for queries log in CursorDebugWrapper.executemany().Mariusz Felisiak
2019-04-29Fixed Python PendingDeprecationWarning in select_for_update.tests.Jon Dufresne