Fixed issue with Django 1.4