Fix for Django 1.6

This small patch causes the app to load properly when used with Django 1.6.