summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2023-08-04Fixed #34760 -- Dropped support for SQLite < 3.27.Mariusz Felisiak
2023-08-04Fixed #34686 -- Added support for GEOS 3.12.Olivier Tabone
2023-08-03Fixed #34761 -- Dropped support for MySQL < 8.0.11.Mariusz Felisiak
2023-08-02Removed unneeded escapes in regexes.Mariusz Felisiak
Special characters lose their special meaning inside sets of characters. "-" lose its special meaning if it's placed as the first or last character. Follow up to 7c6b66383da5f9a67142334cd2ed2d769739e8f1.
2023-08-02Added more tests for django.http.request.split_domain_port().Nick Pope
2023-08-01Fixed #34750 -- Fixed QuerySet.count() when grouping by unused multi-valued ↵Mariusz Felisiak
annotations. Thanks Toan Vuong for the report. Thanks Simon Charette for the review. Regression in 59bea9efd2768102fc9d3aedda469502c218e9b7.
2023-08-01Fixed #32820 -- Added aria-invalid="true" to fields with errors.Gregor Jerše
Co-authored-by: Demetris Stavrou <demestav@gmail.com> Co-authored-by: David Smith <smithdc@gmail.com>
2023-07-31Fixed #34331 -- Added QuerySet.aiterator() support for prefetch_related().John Parton
2023-07-31Refs #34655 -- Made cosmetic edits to RadioSelect tests.nessita
Follow up to f9c5958b8fe452983122b6a13c8f806e4e4e1eef.
2023-07-30Fixed warnings per flake8 6.1.0.Mariusz Felisiak
2023-07-29Fixed #34748 -- Fixed queryset crash when grouping by a reference in a subquery.Simon Charette
Regression in dd68af62b2b27ece50d434f6a351877212e15c3f. Thanks Toan Vuong for the report.
2023-07-28Fixed #34655 -- Increased radioselect's test coverage.Jakub Bagiński
2023-07-27Simplified call_command() calls.Nick Pope
2023-07-24Fixed #34532 -- Made formset_factory() respect Form's default_renderer.Christopher Cave-Ayland
Co-authored-by: David Smith <smithdc@gmail.com>
2023-07-24Fixed #34714 -- Added aget_object_or_404()/aget_list_or_404() shortcuts.Olivier Tabone
2023-07-22Refs #24686 -- Made AlterField operation a noop when renaming related model ↵devilsautumn
with db_table.
2023-07-21Fixed #34731, Refs #34118 -- Replaced assertEquals() with assertEqual() in ↵Michel Alexandre Salim
test_condition_with_func_and_lookup_outside_relation_name(). Signed-off-by: Michel Alexandre Salim <salimma@fedoraproject.org>
2023-07-21Refs #29789 -- Added more tests for FilteredRelation with condition outside ↵Francesco Panico
of relation name.
2023-07-19Made UniqueConstraint raise TypeError for type violations.Simon Charette
2023-07-19Fixed #34701 -- Added support for NULLS [NOT] DISTINCT on PostgreSQL 15+.Simon Charette
2023-07-19Fixed #34717 -- Fixed QuerySet.aggregate() crash when referencing window ↵Simon Charette
functions. Regression in 59bea9efd2768102fc9d3aedda469502c218e9b7. Refs #28477. Thanks younes-chaoui for the report.
2023-07-18Refs #33201 -- Avoided unnecessary queries when renaming models with ↵Mariusz Felisiak
db_table on SpatiaLite.
2023-07-18Fixed #34716 -- Fixed serialization of nested class methods in migrations.Nicolò Intrieri
Co-authored-by: Nicolò <nicolo.intrieri@spinforward.it>
2023-07-17Refs #34118 -- Improved sanitize_address() error message for tuple with ↵Mariusz Felisiak
empty strings.
2023-07-14Refs #30686 -- Moved Parser.SELF_CLOSING_TAGS to django.utils.html.VOID_ELEMENTSDavid Smith
2023-07-14Fixed #34448 -- Doc'd and tested --no-obsolete option of makemessages.Tushar
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2023-07-12Fixed #34697 -- Fixed non-deterministic order of dependencies and ↵Yury V. Zaytsev
sets/frozensets in migrations. Co-authored-by: Dakota Hawkins <dakotahawkins@gmail.com>
2023-07-12Refs #30116 -- Simplified tests related with dictionary order.Mariusz Felisiak
Dicts preserve order since Python 3.6.
2023-07-12Fixed #34705 -- Reallowed BoundField.as_widget()'s attrs argument to set ↵Sage Abdullah
aria-describedby. Regression in 966ecdd482167f3f6b08b00f484936c837751cb9.
2023-07-11Fixed #34691 -- Added system check for unmatched angle brackets in path().Amir Karimi
2023-07-11Refs #34695 -- Added tests for check for CSRF_FAILURE_VIEW signature with ↵Mariusz Felisiak
valid class-based view.
2023-07-10Fixed #34698 -- Made QuerySet.bulk_create() retrieve primary keys when ↵Thomas Chaumeny
updating conflicts.
2023-07-10Refs #31949 -- Made @vary_on_(cookie/headers) decorators work with async ↵Ben Lomax
functions.
2023-07-10Fixed #34696 -- Updated selection counter in admin changelist on Chrome.Cauê Thenório
2023-07-10Refs #31949 -- Made @csrf_exempt decorator to work with async functions.Ben Lomax
2023-07-10Fixed #34688 -- Removed contrib.sitemaps.ping_google() and ping_google ↵Andrew Northall
management command. Thanks Joachim Jablon for the report. Google has deprecated the sitemap ping endpoint, and will be removing it in 6 months ~January 2024.
2023-07-07Refs #9602 -- Moved AlreadyRegistered/NotRegistered exceptions to ↵Mariusz Felisiak
django.contrib.admin.exceptions.
2023-07-07Fixed #32210 -- Fixed model inlines with to_field that has a default.Neeraj Kumar
2023-07-07Refs #24377 -- Added assertions for model inlines with primary key that has ↵Neeraj Kumar
a default. This ensures that a model field default is ignored.
2023-07-07Fixed #9602 -- Added AdminSite.get_model_admin().Mariusz Felisiak
This allows retrieving an admin class for the given model class without using internal attributes.
2023-07-07Fixed #34639 -- Reverted "Fixed #32682 -- Made admin changelist use Exists() ↵Simon Charette
instead of distinct() for preventing duplicates." This reverts commit 187118203197801c6cb72dc8b06b714b23b6dd3d which moved to using Exists() instead due to an overly strict distinct().delete() check added in #32433.
2023-07-07Refs #32433 -- Reallowed calling QuerySet.delete() after distinct().Simon Charette
While values(*field_excluding_pk).distinct() and distinct(*field_excluding_pk) can reduce the number of resulting rows in a way that makes subsequent delete() calls ambiguous standalone .distinct() calls cannot. Since delete() already disallows chain usages with values() the only case that needs to be handled, as originally reported, is when DISTINCT ON is used via distinct(*fields). Refs #32682 which had to resort to subqueries to prevent duplicates in the admin and caused significant performance regressions on MySQL (refs #34639). This partly reverts 6307c3f1a123f5975c73b231e8ac4f115fd72c0d.
2023-07-06Used AdminSite.is_registered() where appropriate.Mariusz Felisiak
2023-07-06Fixed #32819 -- Established relationship between form fields and their help ↵Gregor Jerše
text. Thanks Nimra for the initial patch. Thanks Natalia Bidart, Thibaud Colas, David Smith, and Mariusz Felisiak for reviews.
2023-07-05Made some Selenium tests less flaky by adding explicit wait.sarahboyce
2023-07-04Fixed isolation of SeleniumTests.test_search_input_filtered_page() test.Mariusz Felisiak
Test crashed when the sidebar was not closed.
2023-07-04Made ↵Sarah Boyce
SeleniumTests.test_updating_related_objects_updates_fk_selects_except_autocompletes() test less flaky by adding explicit Selenium wait.
2023-07-03Fixed typo in tests/admin_docs/models.py.davidolz
2023-07-03Fixed CVE-2023-36053 -- Prevented potential ReDoS in EmailValidator and ↵Mariusz Felisiak
URLValidator. Thanks Seokchan Yoon for reports.
2023-06-30Fixed RelatedGeoModelTest.test_centroid_collect_filter().Mariusz Felisiak