Fixed AppRegistry error for django 1.7 compat