summaryrefslogtreecommitdiff
path: root/tests/admin_registration
AgeCommit message (Collapse)Author
2024-11-29Fixed #373 -- Added CompositePrimaryKey.Bendeguz Csirmaz
Thanks Lily Foote and Simon Charette for reviews and mentoring this Google Summer of Code 2024 project. Co-authored-by: Simon Charette <charette.s@gmail.com> Co-authored-by: Lily Foote <code@lilyf.org>
2023-07-07Refs #9602 -- Moved AlreadyRegistered/NotRegistered exceptions to ↵Mariusz Felisiak
django.contrib.admin.exceptions.
2023-07-07Fixed #9602 -- Added AdminSite.get_model_admin().Mariusz Felisiak
This allows retrieving an admin class for the given model class without using internal attributes.
2022-02-07Refs #33476 -- Refactored code to strictly match 88 characters line length.Mariusz Felisiak
2022-02-07Refs #33476 -- Reformatted code with Black.django-bot
2020-12-17Refs #32273 -- Completed test coverage for AdminSite.unregister().David Smith
2019-03-25Fixed #27360 -- Added app or ModelAdmin details for AreadyRegistered exceptions.Hasan Ramezani
2017-07-29Used assertRaisesMessage() to test Django's error messages.Mads Jensen
2017-01-18Refs #23919 -- Removed encoding preambles and future importsClaude Paroz
2016-03-24Used assertIsInstance in admin_registration tests.Tim Graham
2016-01-29Refs #26022 -- Used context manager version of assertRaisesMessage in tests.Hasan
2016-01-29Refs #26022 -- Used context manager version of assertRaises in tests.Hasan
2015-11-12Fixed #25688 -- Made admin.register() disallow an empty list of models.Hasan
2015-05-20Refs #24652 -- Used SimpleTestCase where appropriate.Simon Charette
2015-05-14Refs #24553 -- Isolated admin_* tests.Riccardo Magliocchetti
This fixes a regression with runtests.py --reverse after bd53db5eab05099ae371348529c6428e0da95c6a We need to avoid leaking model registration in the default AdminSite.
2015-02-06Sorted imports with isort; refs #23860.Tim Graham
2014-07-31Fixed #13163 -- Added ability to show change links on inline objects in admin.Nick Sandford
Thanks DrMeers for the suggestion.
2013-09-19Fixed typo in exception message; refs #19414Tim Graham
Thanks Alexey Boriskin for the report.
2013-09-18Fixed #19414 -- Added admin registration decoratorBrian Holdefehr
Thanks stavros for the suggestion.
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-02-26Merged regressiontests and modeltests into the test root.Florian Apolloner