Skip to content

Commit 2d97474

Browse files
change context_class to dict when django_version is greater than 1.8
- this resolves deprecation warnings for projectes that use django1.8
1 parent 75ed135 commit 2d97474

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

django_forms_bootstrap/templatetags/bootstrap_tags.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from django import VERSION as DJANGO_VERSION
44

55

6-
if DJANGO_VERSION >= (1, 10, 0):
6+
if DJANGO_VERSION >= (1, 8, 0):
77
context_class = dict
88
else:
99
# Django<1.10 compatibility

0 commit comments

Comments
 (0)