From 087a91854233cadfc6d4ba92a2b7601c5c040dd5 Mon Sep 17 00:00:00 2001 From: Douglas Miranda Date: Mon, 26 Aug 2013 20:20:09 -0400 Subject: [PATCH] fix TypeError - the right way () --- djadmin2/apiviews.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/djadmin2/apiviews.py b/djadmin2/apiviews.py index 6b7ed1c..c733c32 100644 --- a/djadmin2/apiviews.py +++ b/djadmin2/apiviews.py @@ -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):