summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2019-05-24Fixed #30485 -- Adjusted django.utils.http.urlencode for doseq=False case.Johan Lübcke
2019-05-24Refs #9982 -- Added test for saving OneToOneField field after saving related ↵Mariusz Felisiak
object. Fixed in 519016e5f25d7c0a040015724f9920581551cab0.
2019-05-24Used re.Pattern.findall() instead of re.findall() in inspectdb.tests.Jon Dufresne
2019-05-24Fixed #28780 -- Allowed specyfing a token parameter displayed in password ↵Rob
reset URLs. Co-authored-by: Tim Givois <tim.givois.mendez@gmail.com>
2019-05-24Fixed #30497 -- Ignored document type in assertXMLEqual()/assertXMLNotEqual().Caio Ariede
2019-05-23Fixed #30501 -- Preventing QuerySet.reverse() from mutating expressions in ↵Mariusz Felisiak
QuerySet.order_by and Meta.ordering.
2019-05-22Fixed #30498 -- Fixed proxy class caching in lazy().Ran Benita
lazy() should prepare the proxy class only once (the first time it's used) not on every call. Regression in b4e76f30d12bfa8a53cc297c60055c6f4629cc4c.
2019-05-21Fixed #28816 -- Prevented silencing data loss when decreasing ↵Hasan Ramezani
CharField.max_length on PostgreSQL.
2019-05-21Fixed #28147 -- Fixed loss of assigned parent when saving child after parent.Rob
Thanks Erwin Junge for the initial patch.
2019-05-21Refs #28147 -- Added test for saving nullable ForeignKey with to_field ↵Rob
attribute after saving parent.
2019-05-21Fixed #28763 -- Allowed overriding the session cookie age with ↵Hasan Ramezani
SessionStore.get_session_cookie_age().
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 #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-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-16Fixed #30483 -- Switched test requirement to psycopg2 package.Jon Dufresne
2019-05-15Fixed mis-capitalisation in comment.Ally Weir
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 #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-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-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-07Fixed #30447 -- Added 'is_in_european_union' in GeoIP2.city() dict.Chris Adkins
2019-05-07Refs #26678 -- Added tests for using the field the relation points to with ↵Tobias Kunze
RelatedManager.add()/remove()/set().
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-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 #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-04-30Fixed #30245 -- Added -k option to DiscoverRunner.François Freitag