summaryrefslogtreecommitdiff
path: root/tests/contenttypes_tests/models.py
AgeCommit message (Collapse)Author
2025-04-02Fixed #36267 -- Fixed contenttypes shortcut() view crash with an invalid ↵Ahmed Nassar
object_id for a UUIDField pk.
2022-02-07Refs #33476 -- Reformatted code with Black.django-bot
2020-04-30Removed unused __str__() methods in tests models.Mariusz Felisiak
Follow up to 6461583b6cc257d25880ef9a9fd7e2125ac53ce1.
2018-06-21Added test for contenttype redirect with m2m objects.Paulo
Thanks carltongibson for the test logic.
2017-01-26Refs #23919 -- Replaced usage of django.utils.http utilities with Python ↵Claude Paroz
equivalents Thanks Tim Graham for the review.
2017-01-18Refs #23919 -- Removed python_2_unicode_compatible decorator usageClaude Paroz
2017-01-18Refs #23919 -- Removed encoding preambles and future importsClaude Paroz
2016-08-10Refs #18682 -- Edited explanation in stale content type deletion.Tim Graham
Follow up to 8db889eaf7dce0cb715b075be32047c1b1b316da.
2016-04-16Fixed #26085 -- Fixed contenttypes shortcut() view crash with a null fk to Site.dani poni
Thanks Fabien Schwob for the initial patch.
2015-08-27Fixed #24201 -- Added order_with_respect_to support to GenericForeignKey.Alex Hill
2015-07-27Fixed #21127 -- Started deprecation toward requiring on_delete for ↵Flavio Curella
ForeignKey/OneToOneField
2015-02-16Moved contrib.contenttypes tests out of contrib.Tim Graham
2014-03-03Fixed #16727 -- Added protocol-relative URL support to ↵Thomas Sorrel
contenttypes.views.shortcut.
2014-01-14Fixed #21774 -- Isolate all test urls from eachother.Marc Tamlyn
This (nearly) completes the work to isolate all the test modules from each other. This is now more important as importing models from another module will case PendingDeprecationWarnings if those modules are not in INSTALLED_APPS. The only remaining obvious dependencies are: - d.c.auth depends on d.c.admin (because of the is_admin flag to some views), but this is not so important and d.c.admin is in always_installed_apps - test_client_regress depends on test_client. Eventually these should become a single module, as the split serves no useful purpose.
2013-11-02PEP8 cleanupJason Myers
Signed-off-by: Jason Myers <jason@jasonamyers.com>
2013-07-29Removed most of absolute_import importsClaude Paroz
Should be unneeded with Python 2.7 and up. Added some unicode_literals along the way.
2013-03-14Deprecated django.views.defaults.shortcut.Aymeric Augustin