Fix for no model_name in django < 1.6