summaryrefslogtreecommitdiff
path: root/tests/fixtures/models.py
AgeCommit message (Collapse)Author
2024-01-31Fixed #35159 -- Fixed dumpdata crash when base querysets use prefetch_related().Mariusz Felisiak
Regression in 139135627650ed6aaaf4c755b82c3bd43f2b8f51 following deprecation in edbf930287cb72e9afab1f7208c24b1146b0c4ec. Thanks Andrea F for the report.
2022-02-07Refs #33476 -- Reformatted code with Black.django-bot
2020-04-07Fixed #31051 -- Allowed dumpdata to handle circular references in natural keys.Matthijs Kooijman
Since #26291 forward references in natural keys are properly handled by loaddata, so sorting depenencies in dumpdata doesn't need to break on cycles. This patch allows circular references in natural keys by breaking sort_depenencies() on loops.
2020-04-07Refs #31051 -- Added test for loaddata/dumpdata with circular references ↵Matthijs Kooijman
without natural keys.
2020-04-07Enforced uniqueness of natural keys used in tests.Mariusz Felisiak
2018-12-27Followed style guide for model attribute ordering.Matt Wiens
2018-07-13Fixed #26291 -- Allowed loaddata to handle forward references in natural_key ↵Peter Inglesby
fixtures.
2017-01-25Refs #23919 -- Replaced super(ClassName, self) with super().chillaranand
2017-01-18Refs #23919 -- Removed python_2_unicode_compatible decorator usageClaude Paroz
2016-07-16Fixed #26826 -- Stripped spaces from dumpdata pks argumentsClaude Paroz
Thanks Kevin Graham Foster for the report and Tim Graham for the review.
2016-02-04Fixed #26144 -- Warned when dumping proxy model without concrete parent.Yoong Kang Lim
2015-07-27Fixed #21127 -- Started deprecation toward requiring on_delete for ↵Flavio Curella
ForeignKey/OneToOneField
2014-09-24Removed numbering from the models.py header of some test packages.Loic Bistuer
This is a reliqua from the early days of the modeltests/regressiontests era.
2014-01-26Fixed #19774 -- Deprecated the contenttypes.generic module.Simon Charette
It contained models, forms and admin objects causing undesirable import side effects. Refs #16368. Thanks to Ramiro, Carl and Loïc for the review.
2013-11-02PEP8 cleanupJason Myers
Signed-off-by: Jason Myers <jason@jasonamyers.com>
2013-10-23Fixed #21298 -- Fixed E301 pep8 warningsAlasdair Nicol
2013-03-08Fixed #15363 -- Renamed and normalized to `get_queryset` the methods that ↵Loic Bistuer
return a QuerySet.
2013-02-26Merged regressiontests and modeltests into the test root.Florian Apolloner