mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-11 04:07:39 +03:00
Fix version test.
This commit is contained in:
parent
a3ddd9e4c9
commit
6e6dc21376
|
@ -412,7 +412,7 @@ try:
|
|||
extensions = ['headerid(level=2)']
|
||||
safe_mode = False,
|
||||
|
||||
if markdown.version < (2, 1):
|
||||
if markdown.version_info < (2, 1):
|
||||
output_format = markdown.DEFAULT_OUTPUT_FORMAT
|
||||
|
||||
md = markdown.Markdown(extensions=markdown.load_extensions(extensions),
|
||||
|
|
Loading…
Reference in New Issue
Block a user