summaryrefslogtreecommitdiff
path: root/tests/delete/models.py
AgeCommit message (Collapse)Author
2022-02-07Refs #33476 -- Reformatted code with Black.django-bot
2020-08-31Fixed #31965 -- Adjusted multi-table fast-deletion on MySQL/MariaDB.Simon Charette
The optimization introduced in 7acef095d73 did not properly handle deletion involving filters against aggregate annotations. It initially was surfaced by a MariaDB test failure but misattributed to an undocumented change in behavior that resulted in the systemic generation of poorly performing database queries in 5b83bae031. Thanks Anton Plotkin for the report. Refs #23576.
2020-04-30Removed unused __str__() methods in tests models.Mariusz Felisiak
Follow up to 6461583b6cc257d25880ef9a9fd7e2125ac53ce1.
2020-01-29Refs #27852 -- Fixed object deletion to show all restricted related objects ↵Hasan Ramezani
rather than just the first one.
2020-01-27Refs #27852 -- Fixed object deletion to show all protected related objects ↵Hasan Ramezani
rather than just the first one. Thanks Anton Samarchyan for the initial patch.
2019-11-19Fixed #27272 -- Added an on_delete RESTRICT handler to allow cascading ↵Daniel Izquierdo
deletions while protecting direct ones.
2019-05-06Fixed #30339 -- Made Model.delete(keep_parents=True) preserves nested parent ↵Stephen Brown
reverse relationships. Thanks Simon Charette for the review.
2019-04-17Fixed #30191 -- Selected only referenced fields during cascade deletion.Simon Charette
The non-referenced fields can only be deferred if no deletion signals receivers are connected for their respective model as connected as these receivers might expect all fields of the deleted model to be present. Thanks Ed Morley for the report.
2017-01-18Refs #23919 -- Removed python_2_unicode_compatible decorator usageClaude Paroz
2017-01-18Refs #23919 -- Removed encoding preambles and future importsClaude Paroz
2016-04-08Fixed E128 flake8 warnings in tests/.Tim Graham
2015-11-22Fixed #25685 -- Fixed a duplicate query regression on deletion of proxied ↵Simon Charette
models. Thanks to Trac alias ppetrid for the report and Tim for the review. Conflicts: django/db/models/deletion.py tests/delete/tests.py Forward port of 7c3ef19978b36b61db88a519f799f1ce8d019679 from stable/1.8.x
2015-07-27Fixed #21127 -- Started deprecation toward requiring on_delete for ↵Flavio Curella
ForeignKey/OneToOneField
2015-07-21Fixed #25129 -- Made model instance defaults work with migrations (refs #24919).Tim Graham
2015-07-21Refs #24919 -- Made test models serializable for migrations.Tim Graham
2013-11-02PEP8 cleanupJason Myers
Signed-off-by: Jason Myers <jason@jasonamyers.com>
2013-02-26Merged regressiontests and modeltests into the test root.Florian Apolloner