summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2022-01-13Refs #32681 -- Fixed VariableDoesNotExist when rendering some admin template.Mariusz Felisiak
Regression in 84609b3205905097d7d3038d32e6101f012c0619. Follow up to 4e5bbb6ef2287126badd32842b239f4a8a7394ca. Thanks Sourav Kumar for the report.
2022-01-13Fixed #33396 -- Added view name to technical 500 debug page.Hrushikesh Vaidya
2022-01-12Added exception to SuspiciousOperation logging.Adam Johnson
This allows better debugging and filtering of errors.
2022-01-11Fixed #11715 -- Changed default value of ModelAdmin.actions/inlines to empty ↵Jacob Walls
tuples. This clarifies the intended pattern of overwriting the default value rather than mutating it.
2022-01-11Fixed #13251 -- Made pre/post_delete signals dispatch the origin.mgaligniana
2022-01-10Fixed #29026 -- Added --scriptable option to makemigrations.Jacob Walls
2022-01-10Fixed #33426 -- Fixed ResolverMatch.__repr_() for class-based views.Keryn Knight
Regression in 7c08f26bf0439c1ed593b51b51ad847f7e262bc1.
2022-01-10Refs #32193 -- Removed python-memcached from test requirements.Jacob Walls
Follow up to 05f3a6186efefc9fca2204a745b992501c6fd91f.
2022-01-08Fixed #33425 -- Fixed view name for CBVs on technical 404 debug page.Keryn Knight
Regression in 0c0b87725bbcffca3bc3a7a2c649995695a5ae3b.
2022-01-07Fixed #33419 -- Restored marking forms.Field.help_text as HTML safe.David
Regression in 456466d932830b096d39806e291fe23ec5ed38d5. Thanks Matt Westcott for the report.
2022-01-07Fixed #28628 -- Changed \d to [0-9] in regexes where appropriate.Ad Timmering
2022-01-07Refs #28628 -- Added tests for intcomma with non-ASCII digits.Ad Timmering
2022-01-07Fixed #33216 -- Simpilified deconstructed paths for some expressions.Allen Jonathan David
2022-01-06Refs #33348 -- Deprecated passing errors=None to ↵Baptiste Mispelon
SimpleTestCase.assertFormError()/assertFormsetErrors().
2022-01-06Fixed #33410 -- Fixed recursive capturing of callbacks by ↵Petter Friberg
TestCase.captureOnCommitCallbacks(). Regression in d89f976bddb49fb168334960acc8979c3de991fa.
2022-01-05Fixed #33400 -- Added support for msg_prefix and count arguments to ↵Ad Timmering
assertTemplateUsed()/assertTemplateNotUsed() used as context managers.
2022-01-05Fixed #32511 -- Corrected handling prefetched nested reverse relationships.Jamie Matthews
When prefetching a set of child objects related to a set of parent objects, we usually want to populate the relationship back from the child to the parent to avoid a query when accessing that relationship attribute. However, there's an edge case where the child queryset itself specifies a prefetch back to the parent. In that case, we want to use the prefetched relationship rather than populating the reverse relationship from the parent.
2022-01-04Refs #33216 -- Made @deconstructible do not change path for subclasses.Allen Jonathan David
2022-01-04Refs #21275 -- Added more tests for @deconstructible decorator.Allen Jonathan David
2022-01-04Fixed CVE-2021-45452 -- Fixed potential path traversal in storage subsystem.Florian Apolloner
Thanks to Dennis Brinkrolf for the report.
2022-01-04Fixed CVE-2021-45116 -- Fixed potential information disclosure in dictsort ↵Florian Apolloner
template filter. Thanks to Dennis Brinkrolf for the report. Co-authored-by: Adam Johnson <me@adamj.eu>
2022-01-04Fixed CVE-2021-45115 -- Prevented DoS vector in ↵Florian Apolloner
UserAttributeSimilarityValidator. Thanks Chris Bailey for the report. Co-authored-by: Adam Johnson <me@adamj.eu>
2022-01-04Fixed #33402 -- Optimized multiple AlterFooTogether operations.David Wobrock
2022-01-04Fixed #33406 -- Avoided creation of MaxLengthValidator(None) when resolving ↵Keryn Knight
Value.output_field for strings. This brings the behaviour in line with Field subclasses which append to the validators within __init__(), like BinaryField, and prevents the creation of a validator which incorrectly throws a TypeError, if it were used.
2022-01-04Refs #33406 -- Added test for not creating broken validators when resolving ↵Keryn Knight
Value.output_field.
2022-01-04Fixed #33408 -- Fixed adding nullable unique fields on SQLite.Mariusz Felisiak
Regression in 2f73e5406d54cb8945e187eff302a3a3373350be. Thanks Alan Crosswell for the report.
2022-01-03Refs #29026 -- Allowed customizing InteractiveMigrationQuestioner's prompt ↵Jacob Walls
destination. Previously, the questioner did not obey the value of stdout provided to the command.
2022-01-03Refs #31026 -- Changed @jinja2_tests imports to be relative.Jacob Walls
2021-12-30Removed obsolete Oracle's test_client_encoding() test.Mariusz Felisiak
encoding and nencoding parameters were deprecated in cx_Oracle 8.2. Moreover, encoding is handled internally between cx_Oracle and Oracle Database and there is no need to test it.
2021-12-30Fixed #33300 -- Ensured hidden elements are not displayed on small screens.Shubh1815
2021-12-30Fixed #23273 -- Avoided creation of django_migrations table when there are ↵Jacob Walls
no migrations to apply.
2021-12-28Refs #31617 -- Removed redundant title text in filter.html.David Smith
Unnecessary since 269a76714616fd7ad166a14113f3354bab8d9b65. Title text should provide advisory information and should not be the same or very similar to the element text.
2021-12-27Refs #22983 -- Added tests for squashing migrations with functions from ↵Mariusz Felisiak
migration files. Follow up to ebb13bbd884d8c3053d1d342ef0423240feb05e6.
2021-12-27Refs #33342 -- Deprecated ExclusionConstraint.opclasses.Hannes Ljungberg
2021-12-24Fixed #33342 -- Added support for using OpClass() in exclusion constraints.Hannes Ljungberg
2021-12-23Refs #33355 -- Made trunc functions raise ValueError on invalid lookups on ↵Adam Johnson
SQLite. Co-Authored-By: Nick Pope <nick@nickpope.me.uk>
2021-12-23Refs #32339 -- Added rendering tests for forms with CheckboxSelectMultiple ↵David
and SelectMultiple widgets.
2021-12-22Refs #32355 -- Bumped required psycopg2 version to 2.8.4.Mariusz Felisiak
psycopg2 2.8.4 is the first release to support Python 3.8.
2021-12-22Refs #33355 -- Added missing tests for database functions and expression on ↵Adam Johnson
null values.
2021-12-21Refs #24121 -- Added __repr__() to BaseFormSet.Baptiste Mispelon
2021-12-21Used assertRaisesMessage() in test_client_regress.AssertFormErrorTests.Baptiste Mispelon
2021-12-21Fixed #33374 -- Fixed ExpressionWrapper annotations with full queryset.David Wobrock
2021-12-20Removed a Python error message dependency in ↵Jacob Walls
test_questioner_no_default_bad_user_entry_code().
2021-12-20Increased test coverage of django.db.migrations.questioner.Jacob Walls
2021-12-20Refs #27674 -- Added tests for GISModelAdmin.gis_widget_kwargs.Alexander Filimonov
2021-12-20Fixed #33367 -- Fixed URLValidator crash in some edge cases.mendespedro
2021-12-20Fixed #33368 -- Fixed parse_duration() crash on invalid separators for ↵mendespedro
decimal fractions.
2021-12-17Fixed #33366 -- Fixed case handling with swappable setting detection in ↵Simon Charette
migrations autodetector. The migration framework uniquely identifies models by case insensitive labels composed of their app label and model names and so does the app registry in most of its methods (e.g. AppConfig.get_model) but it wasn't the case for get_swappable_settings_name() until this change. This likely slipped under the radar for so long and only regressed in b9df2b74b98b4d63933e8061d3cfc1f6f39eb747 because prior to the changes related to the usage of model states instead of rendered models in the auto-detector the exact value settings value was never going through a case folding hoop. Thanks Andrew Chen Wang for the report and Keryn Knight for the investigation.
2021-12-16Fixed #33350 -- Reallowed using cache decorators with duck-typed HttpRequest.Mariusz Felisiak
Regression in 3fd82a62415e748002435e7bad06b5017507777c. Thanks Terence Honles for the report.
2021-12-16Fixed #30127 -- Deprecated name argument of cached_property().mgaligniana