From 6e6dc21376e781813e4faea7264d661c2e6d67f3 Mon Sep 17 00:00:00 2001 From: Tom Christie Date: Wed, 21 Dec 2011 00:52:41 +0000 Subject: [PATCH] Fix version test. --- djangorestframework/compat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/djangorestframework/compat.py b/djangorestframework/compat.py index ab0d80f3c..e70b8730b 100644 --- a/djangorestframework/compat.py +++ b/djangorestframework/compat.py @@ -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),