1
0
mirror of https://github.com/django/django.git synced 2024-12-22 17:16:24 +00:00
django/tests
Simon Charette 0701bb8e1f Fixed #33928 -- Avoided unnecessary queries when cascade updating.
Models that use SET, SET_NULL, and SET_DEFAULT as on_delete handler
don't have to fetch objects for the sole purpose of passing them back to
a follow up UPDATE query filtered by the retrieved objects primary key.

This was achieved by flagging SET handlers as _lazy_ and having the
collector logic defer object collections until the last minute. This
should ensure that the rare cases where custom on_delete handlers are
defined remain uncalled when when dealing with an empty collection of
instances.

This reduces the number queries required to apply SET handlers from
2 to 1 where the remaining UPDATE use the same predicate as the non
removed SELECT query.

In a lot of ways this is similar to the fast-delete optimization that
was added in #18676 but for updates this time. The conditions only
happen to be simpler in this case because SET handlers are always
terminal. They never cascade to more deletes that can be combined.

Thanks Renan GEHAN for the report.
2022-08-27 14:25:55 +02:00
..
absolute_url_overrides Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
admin_autodiscover Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
admin_changelist Fixed #27471 -- Made admin's filter choices collapsable. 2022-04-26 08:44:31 +02:00
admin_checks Refs #2259 -- Disallowed primary keys in ModelAdmin.list_editable. 2022-04-25 11:00:50 +02:00
admin_custom_urls Fixed #33028 -- Used ModelAdmin's opts attribute instead of model._meta. 2022-06-22 07:50:24 +02:00
admin_default_site Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
admin_docs Fixed #32565 -- Moved internal URLResolver view-strings mapping to admindocs. 2022-05-17 10:50:09 +02:00
admin_filters Fixed various tests on MySQL with MyISAM storage engine. 2022-04-18 07:05:52 +02:00
admin_inlines Used CSS flex for admin's submit row. 2022-08-18 12:29:40 +02:00
admin_ordering Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
admin_registration Refs #33476 -- Refactored code to strictly match 88 characters line length. 2022-02-07 20:37:05 +01:00
admin_scripts Refs #33476 -- Made management commands use black. 2022-02-11 12:23:26 +01:00
admin_utils Refs #33476 -- Refactored code to strictly match 88 characters line length. 2022-02-07 20:37:05 +01:00
admin_views Fixed #33878 -- Switched to system fonts in CSS. 2022-08-17 10:19:00 +02:00
admin_widgets Fixed #33888 -- Fixed get_select2_language() crash with no language activated. 2022-08-03 19:51:25 +02:00
aggregation Fixed #33718 -- Dropped support for MySQL 5.7. 2022-07-08 13:30:12 +02:00
aggregation_regress Relaxed some query ordering assertions in various tests. 2022-04-14 12:12:13 +02:00
annotations Relaxed some query ordering assertions in various tests. 2022-04-14 12:12:13 +02:00
app_loading Refs #33476 -- Refactored code to strictly match 88 characters line length. 2022-02-07 20:37:05 +01:00
apps Rewrote some references to "master". 2022-03-08 14:50:06 +01:00
asgi Refs #33173, Refs #33755 -- Fixed ResourceWarning from unclosed files in ASGI tests. 2022-08-04 10:00:36 +02:00
async Removed stale Windows asyncio test skips. 2022-04-14 10:43:34 +02:00
async_queryset Fixed #33799, Refs #31685 -- Added parameters for updating conflicts to QuerySeta.abulk_create(). 2022-06-23 11:12:35 +02:00
auth_tests Refs #33691 -- Deprecated insecure password hashers. 2022-07-23 21:29:31 +02:00
backends Fixed #33872 -- Deprecated django.contrib.postgres.fields.CIText/CICharField/CIEmailField/CITextField. 2022-08-03 11:42:51 +02:00
base
bash_completion Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
basic Fixed #33733 -- Preserved wrapper assignment for manager methods. 2022-06-01 10:44:34 +02:00
builtin_server Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
bulk_create Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
cache Fixed #33826 -- Fixed RedisCache.set_many()/delete_many() crash with an empty list. 2022-07-06 10:45:52 +02:00
check_framework Refs #27236 -- Reverted "Refs #27236 -- Added generic mechanism to handle the deprecation of migration operations." 2022-07-26 11:41:19 +02:00
conditional_processing Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
constraints Fixed #33902 -- Fixed Meta.constraints validation crash with F() expressions. 2022-08-09 06:08:48 +02:00
contenttypes_tests Fixed various tests on MySQL with MyISAM storage engine. 2022-04-18 07:05:52 +02:00
context_processors Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
csrf_tests Fixed #33567 -- Avoided setting default text/html content type on responses. 2022-03-09 14:50:52 +01:00
custom_columns Removed redundant QuerySet.all() calls in docs and tests. 2022-02-22 10:29:38 +01:00
custom_lookups Refs CVE-2022-34265 -- Properly escaped Extract() and Trunc() parameters. 2022-07-06 07:40:07 +02:00
custom_managers Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
custom_methods Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
custom_migration_operations Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
custom_pk Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
datatypes Refs #32365 -- Removed internal uses of utils.timezone.utc alias. 2022-03-24 06:29:50 +01:00
dates Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
datetimes Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
db_functions Refs #27412 -- Confirmed support for executing Coalesce(subquery). 2022-08-24 12:30:47 +02:00
db_typecasts Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
db_utils Added backward compatibility test for ConnectionHandler.databases property. 2022-05-13 12:01:07 +02:00
dbshell Fixed #33854 -- Corrected the order of parameters in dbshell on PostgreSQL. 2022-07-18 06:30:20 +02:00
decorators Normalized decorator style for functools.wraps. 2022-05-25 10:58:48 +02:00
defer Removed redundant QuerySet.all() calls in docs and tests. 2022-02-22 10:29:38 +01:00
defer_regress Removed redundant QuerySet.all() calls in docs and tests. 2022-02-22 10:29:38 +01:00
delete Refs #33476 -- Refactored code to strictly match 88 characters line length. 2022-02-07 20:37:05 +01:00
delete_regress Fixed #33928 -- Avoided unnecessary queries when cascade updating. 2022-08-27 14:25:55 +02:00
deprecation Fixed #33518 -- Added RemovedAfterNextVersionWarning. 2022-02-21 06:23:41 +01:00
dispatch Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
distinct_on_fields Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
empty
empty_models Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
expressions Fixed #33543 -- Deprecated passing nulls_first/nulls_last=False to OrderBy and Expression.asc()/desc(). 2022-05-12 11:30:03 +02:00
expressions_case Fixed #33895 -- Fixed Case() crash with filters that match everything in When(). 2022-08-09 07:55:31 +02:00
expressions_window Refs #28333 -- Added partial support for filtering against window functions. 2022-08-15 08:26:26 +02:00
extra_regress Removed redundant QuerySet.all() calls in docs and tests. 2022-02-22 10:29:38 +01:00
field_deconstruction Fixed #33515 -- Prevented recreation of migration for ManyToManyField to lowercased swappable setting. 2022-02-16 21:09:24 +01:00
field_defaults Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
field_subclassing Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
file_storage Refs #32365 -- Removed internal uses of utils.timezone.utc alias. 2022-03-24 06:29:50 +01:00
file_uploads Refs #33697 -- Used django.utils.http.parse_header_parameters() for parsing boundary streams. 2022-06-28 09:42:47 +02:00
files Refs #33476 -- Refactored code to strictly match 88 characters line length. 2022-02-07 20:37:05 +01:00
filtered_relation Relaxed some query ordering assertions in various tests. 2022-04-14 12:12:13 +02:00
fixtures Refs #33476 -- Refactored code to strictly match 88 characters line length. 2022-02-07 20:37:05 +01:00
fixtures_model_package Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
fixtures_regress Fixed #33949 -- Fixed fixture dirs duplicates with Path instances. 2022-08-23 13:24:18 +02:00
flatpages_tests Refs #33476 -- Refactored code to strictly match 88 characters line length. 2022-02-07 20:37:05 +01:00
force_insert_update Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
foreign_object Removed redundant QuerySet.all() calls in docs and tests. 2022-02-22 10:29:38 +01:00
forms_tests Fixed #33830 -- Fixed VariableDoesNotExist when rendering ClearableFileInput. 2022-08-25 07:52:36 +02:00
from_db_value Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
generic_inline_admin Refs #33476 -- Refactored code to strictly match 88 characters line length. 2022-02-07 20:37:05 +01:00
generic_relations Fixed #33004 -- Made saving objects with unsaved GenericForeignKey raise ValueError. 2022-04-21 10:12:28 +02:00
generic_relations_regress Fixed #33004 -- Made saving objects with unsaved GenericForeignKey raise ValueError. 2022-04-21 10:12:28 +02:00
generic_views Refs #32365 -- Removed internal uses of utils.timezone.utc alias. 2022-03-24 06:29:50 +01:00
get_earliest_or_latest Fixed #33772 -- Added QuerySet.first()/last() error message on unordered queryset with aggregation. 2022-06-14 12:24:43 +02:00
get_object_or_404 Refs #33476 -- Refactored code to strictly match 88 characters line length. 2022-02-07 20:37:05 +01:00
get_or_create Refs #33476 -- Refactored code to strictly match 88 characters line length. 2022-02-07 20:37:05 +01:00
gis_tests Fixed #33924 -- Deprecated BaseGeometryWidget.map_height/map_width attributes. 2022-08-12 13:26:35 +02:00
handlers Refs #31407 -- Handled potential exception in test cleanup. 2022-02-15 14:38:19 +01:00
httpwrappers Fixed #33567 -- Avoided setting default text/html content type on responses. 2022-03-09 14:50:52 +01:00
humanize_tests Refs #32365 -- Removed internal uses of utils.timezone.utc alias. 2022-03-24 06:29:50 +01:00
i18n Updated translations from Transifex. 2022-08-03 08:04:34 +02:00
import_error_package
indexes Fixed #27236 -- Deprecated Meta.index_together in favor of Meta.indexes. 2022-07-12 09:04:31 +02:00
inline_formsets Refs #33476 -- Refactored code to strictly match 88 characters line length. 2022-02-07 20:37:05 +01:00
inspectdb Fixed #33823 -- Made inspectdb generate unique related_name when reverse accessor clashes. 2022-07-06 09:35:50 +02:00
introspection Refs #27236 -- Removed usage of Meta.index_together from indexes/introspection test models. 2022-07-11 08:30:19 +02:00
invalid_models_tests Fixed #33872 -- Deprecated django.contrib.postgres.fields.CIText/CICharField/CIEmailField/CITextField. 2022-08-03 11:42:51 +02:00
known_related_objects Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
logging_tests Refs #33476 -- Refactored code to strictly match 88 characters line length. 2022-02-07 20:37:05 +01:00
lookup Fixed #33705 -- Fixed crash when using IsNull() lookup in filters. 2022-05-19 07:02:22 +02:00
m2m_and_m2o Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
m2m_intermediary Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
m2m_multiple Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
m2m_recursive Relaxed some query ordering assertions in various tests. 2022-04-14 12:12:13 +02:00
m2m_regress Refs #33476 -- Refactored code to strictly match 88 characters line length. 2022-02-07 20:37:05 +01:00
m2m_signals Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
m2m_through Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
m2m_through_regress Refs #33476 -- Refactored code to strictly match 88 characters line length. 2022-02-07 20:37:05 +01:00
m2o_recursive Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
mail Refs #33173 -- Fixed MailTests.test_backend_arg() on Windows and Python 3.11+. 2022-02-19 20:36:01 +01:00
managers_regress Refs #33476 -- Refactored code to strictly match 88 characters line length. 2022-02-07 20:37:05 +01:00
many_to_many Refs #33476 -- Refactored code to strictly match 88 characters line length. 2022-02-07 20:37:05 +01:00
many_to_one Fixed #33191 -- Avoided clearing cached reference when saving child after parent. 2022-05-31 10:19:54 +02:00
many_to_one_null Fixed #19580 -- Unified behavior of reverse foreign key and many-to-many relations for unsaved instances. 2022-02-22 09:16:40 +01:00
max_lengths Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
messages_tests Refs #33476 -- Refactored code to strictly match 88 characters line length. 2022-02-07 20:37:05 +01:00
middleware Fixed #33700 -- Skipped extra resolution for successful requests not ending with /. 2022-06-02 15:15:04 +02:00
middleware_exceptions Fixed #33495 -- Improved debug logging message about adapting handlers for middlewares. 2022-02-09 12:10:26 +01:00
migrate_signals Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
migration_test_data_persistence Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
migrations Fixed #33953 -- Reverted "Fixed #33201 -- Made RenameModel operation a noop for models with db_table." 2022-08-26 06:14:44 +02:00
migrations2 Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
model_enums Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
model_fields Removed unused path variable in model_fields tests. 2022-08-23 15:34:07 +02:00
model_forms Fixed #31721 -- Allowed ModelForm meta to specify form fields. 2022-08-08 09:46:05 +02:00
model_formsets Fixed #33822 -- Fixed save() crash on model formsets when not created by modelformset_factory(). 2022-07-05 07:19:18 +02:00
model_formsets_regress Relaxed some query ordering assertions in various tests. 2022-04-14 12:12:13 +02:00
model_indexes Fixed #33773 -- Made Index with multiple fields respect DEFAULT_INDEX_TABLESPACE. 2022-06-13 07:21:46 +02:00
model_inheritance Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
model_inheritance_regress Fixed #33618 -- Fixed MTI updates outside of primary key chain. 2022-04-07 07:54:56 +02:00
model_meta Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
model_options Refs #27236 -- Reverted AlterIndexTogether deprecation. 2022-07-26 11:41:19 +02:00
model_package Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
model_regress Refs #33476 -- Refactored code to strictly match 88 characters line length. 2022-02-07 20:37:05 +01:00
model_utils Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
modeladmin Fixed #11803 -- Allowed admin select widgets to display new related objects. 2022-04-15 07:46:37 +02:00
multiple_database Removed redundant QuerySet.all() calls in docs and tests. 2022-02-22 10:29:38 +01:00
mutually_referential Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
nested_foreign_keys Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
no_models Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
null_fk Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
null_fk_ordering Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
null_queries Fixed #19580 -- Unified behavior of reverse foreign key and many-to-many relations for unsaved instances. 2022-02-22 09:16:40 +01:00
one_to_one Removed redundant QuerySet.all() calls in docs and tests. 2022-02-22 10:29:38 +01:00
or_lookups Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
order_with_respect_to Fixed #33501 -- Made order_with_respect_to respect database routers. 2022-02-09 13:31:49 +01:00
ordering Fixed #29538 -- Fixed crash of ordering by related fields when Meta.ordering contains expressions. 2022-05-12 07:19:16 +02:00
pagination Refs #33476 -- Refactored code to strictly match 88 characters line length. 2022-02-07 20:37:05 +01:00
postgres_tests Fixed #33927 -- Fixed crash when displaying ArrayField with choices in admin. 2022-08-23 15:51:42 +02:00
prefetch_related Fixed #26780 -- Added prefetch_related() support for sliced queries. 2022-08-15 10:25:20 +02:00
project_template Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
properties Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
proxy_model_inheritance Removed redundant QuerySet.all() calls in docs and tests. 2022-02-22 10:29:38 +01:00
proxy_models Fixed #33816 -- Fixed QuerySet.only() after select_related() crash on proxy models. 2022-07-04 06:37:36 +02:00
queries Refs #32948, Refs #32946 -- Used Q.create() internally for dynamic Q() objects. 2022-07-27 10:06:24 +02:00
queryset_pickle Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
raw_query Fixed various tests on MySQL with MyISAM storage engine. 2022-04-18 07:05:52 +02:00
redirects_tests Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
requests Refs #33476 -- Refactored code to strictly match 88 characters line length. 2022-02-07 20:37:05 +01:00
requirements Updated asgiref dependency for 4.1 release series. 2022-06-16 12:13:15 +02:00
reserved_names Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
resolve_url Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
responses Fixed CVE-2022-36359 -- Escaped filename in Content-Disposition header. 2022-08-03 08:46:31 +02:00
reverse_lookup Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
save_delete_hooks Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
schema Fixed #33932 -- Fixed altering AutoFields to OneToOneField on PostgreSQL. 2022-08-17 17:06:00 +02:00
select_for_update Fixed DatabaseFeatures.uses_savepoints/can_release_savepoints and related tests with MyISAM storage engine. 2022-04-18 07:05:52 +02:00
select_related Removed redundant QuerySet.all() calls in docs and tests. 2022-02-22 10:29:38 +01:00
select_related_onetoone Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
select_related_regress Removed redundant QuerySet.all() calls in docs and tests. 2022-02-22 10:29:38 +01:00
serializers Fixed various tests on MySQL with MyISAM storage engine. 2022-04-18 07:05:52 +02:00
servers Relaxed some query ordering assertions in various tests. 2022-04-14 12:12:13 +02:00
sessions_tests Removed 'tests' path prefix in a couple tests. 2022-05-02 06:21:18 +02:00
settings_tests Fixed #33569 -- Added SECURE_PROXY_SSL_HEADER support for list of protocols in the header value. 2022-03-23 19:33:36 +01:00
shell Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
shortcuts Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
signals Refs #33476 -- Refactored code to strictly match 88 characters line length. 2022-02-07 20:37:05 +01:00
signed_cookies_tests Fixed #33562 -- Made HttpResponse.set_cookie() support timedelta for the max_age argument. 2022-03-07 07:57:14 +01:00
signing Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
sitemaps_tests Fixed typo in tests/sitemaps_tests/test_http.py. 2022-07-11 08:25:04 +02:00
sites_framework Removed redundant QuerySet.all() calls in docs and tests. 2022-02-22 10:29:38 +01:00
sites_tests Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
staticfiles_tests Added test for non-HTTP request on ASGIStaticFilesHandler. 2022-08-08 07:27:32 +02:00
str Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
string_lookup Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
swappable_models Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
syndication_tests Fixed #22078 -- Fixed crash of Feed with decorated methods. 2022-05-26 10:39:51 +02:00
template_backends Fixed #33639 -- Enabled cached template loader in development. 2022-04-19 12:13:27 +02:00
template_loader Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
template_tests Fixed #33864 -- Deprecated length_is template filter. 2022-07-23 12:36:21 +02:00
templates
test_client Fixed #32969 -- Fixed pickling HttpResponse and subclasses. 2022-06-20 08:51:26 +02:00
test_client_regress Moved remaining SimpleTestCase.assertFormError()/assertFormsetErrors() tests to test_utils. 2022-04-05 08:37:28 +02:00
test_exceptions Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
test_runner Fixed #33719 -- Fixed test command crash when running in parallel. 2022-05-19 10:20:51 +02:00
test_runner_apps Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
test_utils Fixed #33633 -- Skipped some test_utils tests on databases that don't support transactions. 2022-04-12 13:37:44 +02:00
timezones Refs #32365 -- Deprecated django.utils.timezone.utc. 2022-03-29 14:47:44 +02:00
transaction_hooks Fixed DatabaseFeatures.uses_savepoints/can_release_savepoints and related tests with MyISAM storage engine. 2022-04-18 07:05:52 +02:00
transactions Fixed DatabaseFeatures.uses_savepoints/can_release_savepoints and related tests with MyISAM storage engine. 2022-04-18 07:05:52 +02:00
unmanaged_models Refs #33476 -- Refactored code to strictly match 88 characters line length. 2022-02-07 20:37:05 +01:00
update Fixed #28897 -- Fixed QuerySet.update() on querysets ordered by annotations. 2022-06-17 10:06:17 +02:00
update_only_fields Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
urlpatterns Fixed #16406 -- Added ResolveMatch.captured_kwargs and extra_kwargs. 2022-03-29 10:27:40 +02:00
urlpatterns_reverse Fixed #32565 -- Moved internal URLResolver view-strings mapping to admindocs. 2022-05-17 10:50:09 +02:00
user_commands Fixed #33657 -- Allowed customizing formatter class of argument parsers. 2022-06-20 17:34:52 +02:00
utils_tests Refs #30213 -- Removed post-startup check for Watchman availability. 2022-08-11 11:02:03 +02:00
validation Fixed #30581 -- Added support for Meta.constraints validation. 2022-05-10 11:22:23 +02:00
validators Fixed #32559 -- Added 'step_size’ to numeric form fields. 2022-05-12 14:16:52 +02:00
version Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
view_tests Fixed #33863 -- Fixed JavaScriptCatalog with more than 1 level of fallback translations. 2022-07-25 08:45:46 +02:00
wsgi Refs #33476 -- Refactored code to strictly match 88 characters line length. 2022-02-07 20:37:05 +01:00
xor_lookups Fixed #29865 -- Added logical XOR support for Q() and querysets. 2022-03-04 12:55:37 +01:00
.coveragerc
README.rst
runtests.py Fixed #33872 -- Deprecated django.contrib.postgres.fields.CIText/CICharField/CIEmailField/CITextField. 2022-08-03 11:42:51 +02:00
test_sqlite.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
urls.py

To run the test suite, first, create and activate a virtual environment. Then
install some requirements and run the tests::

    $ cd tests
    $ python -m pip install -e ..
    $ python -m pip install -r requirements/py3.txt
    $ ./runtests.py

For more information about the test suite, see
https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/unit-tests/.