From 2d974748db00059875e6ecd9ec3ba3400af13cf6 Mon Sep 17 00:00:00 2001 From: Saeid Askari Date: Thu, 5 Jul 2018 12:38:18 +0430 Subject: [PATCH] change context_class to dict when django_version is greater than 1.8 - this resolves deprecation warnings for projectes that use django1.8 --- django_forms_bootstrap/templatetags/bootstrap_tags.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django_forms_bootstrap/templatetags/bootstrap_tags.py b/django_forms_bootstrap/templatetags/bootstrap_tags.py index d4325d3..2d912e7 100644 --- a/django_forms_bootstrap/templatetags/bootstrap_tags.py +++ b/django_forms_bootstrap/templatetags/bootstrap_tags.py @@ -3,7 +3,7 @@ from django import VERSION as DJANGO_VERSION -if DJANGO_VERSION >= (1, 10, 0): +if DJANGO_VERSION >= (1, 8, 0): context_class = dict else: # Django<1.10 compatibility