mirror of
https://github.com/django/django.git
synced 2025-10-30 09:06:13 +00:00
[5.2.x] Fixed writer_name deprecation warning in docutils 0.22+.
Backport of 65ab92f6a8 from main.
This commit is contained in:
committed by
Natalia
parent
3031c512f0
commit
5aefd005fc
@@ -82,7 +82,7 @@ def parse_rst(text, default_reference_context, thing_being_parsed=None):
|
||||
source % text,
|
||||
source_path=thing_being_parsed,
|
||||
destination_path=None,
|
||||
writer_name="html",
|
||||
writer="html",
|
||||
settings_overrides=overrides,
|
||||
)
|
||||
return mark_safe(parts["fragment"])
|
||||
|
||||
Reference in New Issue
Block a user