fix some codacy errors

This commit is contained in:
Valentin Samir
2016-07-29 15:11:43 +02:00
parent 3063cf116b
commit 570676f5b0
6 changed files with 28 additions and 11 deletions

View File

@ -33,6 +33,11 @@ if django.VERSION < (1, 8):
from django.template import Context
else:
def Context(arg):
"""
Starting from django 1.8 render take a dict and deprecated the use of a Context.
So this is the identity function, only use for compatibility with django 1.7 where
render MUST take a Context as argument.
"""
return arg