Checks run (2 succeeded)
flake8
passed.
JSHint
passed.
Review Request #15179 — Created July 21, 2026 and submitted
Rendering any admin page stamps the sidebar's managed-models set onto
the registeredAdminManageNavGroupActionsingleton (inside
AdminSidebarManageActionGroupRenderer._get_sidebar_state()),
and that instance attribute survived across tests. Once any earlier test
rendered admin chrome, the "unmanaged" cache tests saw User as managed,
the post_save/post_delete handlers invalidated the cache, and the tests
failed.The test class now clears the stamped state from the registered action
insetUp(), and_patch_managed_models()patches the registered
instance instead of the class, which the instance attribute would
otherwise shadow.
Ran unit tests in random order.
| Summary | ID |
|---|---|
| zmpykkxzlwspnvqkrrqmrxtpsmunzrwn |