﻿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
36124	Importing from django.contrib.admindocs.views modifies docutils rst parser	Michal Čihař		"Doing `from django.contrib.admindocs.views import simplify_regex` is enough to make admindocs customize docutils rst parser what might have undesired side effects. I've ran into this via django-rest-framework (https://github.com/encode/django-rest-framework/issues/9626), but there are apparently more users of this function (https://github.com/search?q=%22from+django.contrib.admindocs.views+import+simplify_regex%22&type=code). Not sure if this interface is considered public or not, but apparently it got some users.

Docutils lack of local registry (https://sourceforge.net/p/docutils/feature-requests/38/) so there is currently no way to make the customization local to admindocs.

Would it be possible to separate simplify_regex logic to some utility module that could be reused by others and would not suffer such side effects? Any other ideas how to address this?"	Cleanup/optimization	closed	contrib.admindocs	dev	Normal	needsinfo	docutils simplify_regex roles register_canonical_role		Unreviewed	0	0	0	0	0	0
