mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-26 19:43:59 +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