From 6c4cf2c646bcfa9cb92eab080026c266964c2896 Mon Sep 17 00:00:00 2001 From: Carlton Gibson Date: Fri, 10 Nov 2017 09:22:19 +0100 Subject: [PATCH] Add comment re dropping pytz compat ... when dropping Django 1.10 --- rest_framework/compat.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rest_framework/compat.py b/rest_framework/compat.py index 58f03eb55..f34cdcc54 100644 --- a/rest_framework/compat.py +++ b/rest_framework/compat.py @@ -248,8 +248,9 @@ else: def md_filter_add_syntax_highlight(md): return False +# pytz is required from Django 1.11. Remove when dropping Django 1.10 support. try: - import pytz # noqa + import pytz # noqa from pytz.exceptions import InvalidTimeError except ImportError: InvalidTimeError = Exception