Updated app so that it is compatible with django 1.4