summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2019-12-23Refs #31115 -- Added test for nested subquery that references related fields.Mariusz Felisiak
Thanks Dmitriy Gunchenko for the report and Simon Charette for the analysis and tests. Regression in 5a4d7285bd10bd40d9f7e574a7c421eb21094858. Fixed in 5a4d7285bd10bd40d9f7e574a7c421eb21094858.
2019-12-23Fixed #30998 -- Added ModelChoiceIteratorValue to pass the model instance to ↵Jon Dufresne
ChoiceWidget.create_option().
2019-12-23Fixed #31109 -- Disabled grouping by aliases on QuerySet.exists().Simon Charette
Clearing the SELECT clause in Query.has_results was orphaning GROUP BY references to it. Thanks Thierry Bastian for the report and Baptiste Mispelon for the bisect. Regression in fb3f034f1c63160c0ff13c609acd01c18be12f80.
2019-12-19Refs #28954 -- Removed remaining Jython-specific code from dispatch tests.Nick Pope
Missed in 23b21db31bfcf2a065d485617412cca43a311a4c.
2019-12-19Fixed #31095 -- Made RelatedManager.set() preserve existing m2m relations ↵Hasan Ramezani
with an invalid type.
2019-12-19Fixed #31094 -- Included columns referenced by subqueries in GROUP BY on ↵Simon Charette
aggregations. Thanks Johannes Hoppe for the report. Regression in fb3f034f1c63160c0ff13c609acd01c18be12f80. Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2019-12-19Refs #31094 -- Added test for not using aliases in GROUP BY clauses.Simon Charette
2019-12-18Refs #30585 -- Updated project templates and tests to use (block)translate tags.Mike Hansen
2019-12-18Fixed #30585 -- Added {% translate %} and {% blocktranslate %} template tags.Mike Hansen
2019-12-18Fixed CVE-2019-19844 -- Used verified user email for password reset requests.Simon Charette
Co-Authored-By: Florian Apolloner <florian@apolloner.eu>
2019-12-17Fixed #31086 -- Improved error message for admin model inlines with more ↵Shubham singh
than one foreign key to the same parent.
2019-12-16Fixed #31088 -- Added support for websearch searching in SearchQuery.James Turk
2019-12-16Fixed #31076 -- Fixed dbshell crash on Windows with Python < 3.8.Zeynel Özdemir
subprocess.run()'s args parameter accepts path-like objects on Windows since Python 3.8.
2019-12-14Refs #12679 -- Added test for using property as ModelAdmin.inlines.Baptiste Mispelon
Fixed in 1d8eb0cae57731b481a88dca272b2cb0d645bd8e.
2019-12-13Fixed #26743 -- Fixed UnboundLocalError crash when deserializing m2m fields ↵Baptiste Mispelon
and value isn't iterable.
2019-12-12Fixed #30862 -- Allowed setting SameSite cookies flags to 'none'.Osaetin Daniel
Thanks Florian Apolloner and Carlton Gibson for reviews.
2019-12-12Refs #25361 -- Added test for pickling queryset of abstract-inherited models ↵Baptiste Mispelon
with Meta.ordering. Fixed in 67cf5efa31acb2916034afb15610b700695dfcb0.
2019-12-11Fixed typo in tests/cache/tests.py docstring.Jon Dufresne
2019-12-11Fixed typo in ModelChoiceFieldTests.Jon Dufresne
The subindex and attrs arguments should be passed through to the parent, not overridden as None.
2019-12-11Fixed #31080 -- Removed redundant type="text/javascript" attribute from ↵Jon Dufresne
<script> tags.
2019-12-10Fixed #31077 -- Made debug decorators raise TypeError if they're not called.Baptiste Mispelon
Django will raise an error if you forget to call the decorator.
2019-12-10Fixed #31073 -- Prevented CheckboxInput.get_context() from mutating attrs.Peter Andersen
2019-12-10Refs #23433 -- Fixed test_django_admin_py.DeprecationTest tests failures on ↵Mariusz Felisiak
Windows and Python < 3.8. subprocess.run()'s args parameter accepts a path-like object on Windows since Python 3.8.
2019-12-10Fixed #26480 -- Fixed crash of contrib.auth.authenticate() on decorated ↵Baptiste Mispelon
authenticate() methods of authentication backends. The Signature API (PEP 362) has better support for decorated functions (by default, it follows the __wrapped__ attribute set by functools.wraps for example).
2019-12-09Refs #31044 -- Fixed error message when using Prefetch with a values_list() ↵Mariusz Felisiak
queryset.
2019-12-09Fixed #31044 -- Errored nicely when using Prefetch with a raw() queryset.Hasan Ramezani
2019-12-09Fixed #27430 -- Added -b/--buffer option to DiscoverRunner.Baptiste Mispelon
2019-12-09Refs #30676 -- Added test for invalid --pdb and --parallel usage in ↵Mariusz Felisiak
DiscoverRunner.
2019-12-06Fixed #31060 -- Reallowed window expressions to be used in conditions ↵Alex Aktsipetrov
outside of queryset filters. Regression in 4edad1ddf6203326e0be4bdb105beecb0fe454c4. Thanks utapyngo for the report.
2019-12-06Fixed #23433 -- Deprecated django-admin.py entry point in favor of django-admin.Jon Dufresne
Unify on the entry point created by setuptools entry_points feature.
2019-12-06Refs #23433 -- Removed script argument from AdminScriptTestCase.run_test().Jon Dufresne
2019-12-06Removed unnecessary __init__.py creation in admin_scripts.tests.Jon Dufresne
2019-12-06Fixed #31061 -- Ignored positional args in django.urls.resolve() when all ↵Mariusz Felisiak
optional named parameters are missing. Regression in 76b993a117b61c41584e95149a67d8a1e9f49dd1. Thanks Claude Paroz for the report and Carlton Gibson for reviews.
2019-12-05Fixed #31039 -- Added support for contained_by lookup with AutoFields, ↵Hasan Ramezani
SmallIntegerField, and DecimalField.
2019-12-05Moved selenium import to nested scope.Carlton Gibson
2019-12-05Fixed #31010 -- Allowed subdomains of localhost in the Host header by ↵Gordon Pendleton
default when DEBUG=True.
2019-12-04Fixed #23524 -- Allowed DATABASES['TIME_ZONE'] option on PostgreSQL.Aymeric Augustin
2019-12-03Fixed #31046 -- Allowed RelatedManager.add()/create()/set() to accept ↵Baptiste Mispelon
callable values in through_defaults.
2019-12-03Fixed #31056 -- Allowed disabling async-unsafe check with an environment ↵Andrew Godwin
variable.
2019-12-02Refs #29892 -- Made Selenium tests wait for popups to be ready.Jon Dufresne
2019-12-02Refs #25705 -- Fixed invalid SQL generated by SQLFuncMixin.as_sql() in ↵Mariusz Felisiak
custom_lookups tests. Generated SQL was invalid because parameters are quoted by a driver.
2019-12-02Fixed CVE-2019-19118 -- Required edit permissions on parent model for ↵Carlton Gibson
editable inlines in admin. Thank you to Shen Ying for reporting this issue.
2019-12-02Fixed #30953 -- Made select_for_update() lock queryset's model when using ↵Mariusz Felisiak
"self" with multi-table inheritance. Thanks Abhijeet Viswa for the report and initial patch.
2019-11-29Fixed #29892 -- Added explicit Selenium wait in admin autocomplete tests.Carlton Gibson
2019-11-29Fixed #30255 -- Fixed admindocs errors when rendering docstrings without ↵Baptiste Mispelon
leading newlines. Used inspect.cleandoc() which implements PEP-257 instead of an internal hook.
2019-11-29Fixed #31021 -- Fixed proxy model permissions data migration crash with a ↵Mariusz Felisiak
multiple databases setup. Regression in 98296f86b340c8c9c968375d59f1d3a3479e60c2.
2019-11-28Refs #23919 -- Replaced super(...) with super() in metaclasses.Jon Dufresne
2019-11-28Fixed #31042 -- Removed AdminSeleniumTestCase.get_css_value() in favor of ↵Jon Dufresne
Selenium .is_displayed(). All instances of AdminSeleniumTestCase.get_css_value() were used to inspect the display property.
2019-11-28Fixed #29892 -- Added .wait_page_loaded() in ↵Jon Dufresne
SeleniumTests.test_first_field_focus().
2019-11-28Refs #29892 -- Replaced Selenium .submit() shim with .click() on the submit ↵Jon Dufresne
button. There is no WebDriver submit primitive. The Selenium project implements it as a convenience only. The geckodriver developers recommend against using it. Replace it with a real primitive, click on the submit button. Fixes failing Seleninum test test_date_time_picker_shortcuts when using the Firefox Selenium driver.