Merge pull request #370 from douglasmiranda/fix-typeerror

fix TypeError - the right way
This commit is contained in:
Daniel Greenfeld 2013-08-26 23:42:52 -07:00
commit eb768817f3

View file

@ -75,7 +75,7 @@ class IndexAPIView(Admin2APIMixin, APIView):
return {
'app_label': app_label,
'models': model_data,
'app_verbose_name': unicode(self.app_verbose_names.get(app_label))
'app_verbose_name': force_str(self.app_verbose_names.get(app_label))
}
def get(self, request):