diff --git a/xadmin/plugins/themes.py b/xadmin/plugins/themes.py index d83dd9cc3..9c07ae687 100644 --- a/xadmin/plugins/themes.py +++ b/xadmin/plugins/themes.py @@ -73,8 +73,6 @@ def block_top_navmenu(self, context, nodes): try: headers = {"Accept": "application/json", "User-Agent": self.request.META['HTTP_USER_AGENT']} content = requests.get("https://bootswatch.com/api/3.json", headers=headers) - if six.PY3: - content = content.text.decode() watch_themes = json.loads(content.text)['themes'] ex_themes.extend([{'name': t['name'], 'description': t['description'], 'css': t['cssMin'], 'thumbnail': t['thumbnail']} for t in watch_themes])