id summary reporter owner description type status component version severity resolution keywords cc stage has_patch needs_docs needs_tests needs_better_patch easy ui_ux 33955 AttributeError in admindocs ViewDetailView Greg Kaleka Mariusz Felisiak "In Django 4.1, the admindocs `ViewDetailView` raises an `AttributeError`. I'm not clear on why `_active` is missing the `local_value` attribute when `_is_callback` is called. Reproduction steps: 1. Create a new project with Django 4.1 2. Include `django.contrib.admindocs` in your installed apps 3. Add the urls to your urlconf: `path(""admindocs/"", include(""django.contrib.admindocs.urls""))` 4. Run `manage.py migrate` and `manage.py createsuperuser` 5. Go to `localhost:8000/admindocs/views/` and click on any view to go to the `ViewDetailView` Quick and dirty fix in `django/contrib/admindocs/utils.py`: {{{ #!div style=""font-size: 80%"" Code highlighting: {{{#!python def _is_callback(name, urlresolver=None): if not hasattr(_active, ""local_value""): _active.local_value = _callback_strs if urlresolver and not urlresolver._populated: register_callback(urlresolver, _active.local_value) return name in _active.local_value }}} }}}" Bug closed contrib.admindocs 4.1 Release blocker fixed Carlton Gibson Alokik Roy Accepted 1 0 0 0 0 0