up to django1.7