From 53d85205b0e2055f65d9b6114806d181aa08fccc Mon Sep 17 00:00:00 2001 From: guangbiao Date: Fri, 23 Jun 2017 10:44:40 +0800 Subject: [PATCH] =?UTF-8?q?admin=20=E5=9C=A8=20django1.11.2=20=E4=B8=AD?= =?UTF-8?q?=E5=87=BA=E9=94=99=20build=5Fattrs()=20got=20an=20unexpected=20?= =?UTF-8?q?keyword=20argument=20name?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- xadmin/views/dashboard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xadmin/views/dashboard.py b/xadmin/views/dashboard.py index 7aa9dafd5..fd1ea2255 100644 --- a/xadmin/views/dashboard.py +++ b/xadmin/views/dashboard.py @@ -36,7 +36,7 @@ def __init__(self, widgets, attrs=None): def render(self, name, value, attrs=None): if value is None: value = '' - final_attrs = self.build_attrs(attrs, name=name) + final_attrs = self.build_attrs(attrs, {'name':name}) final_attrs['class'] = 'nav nav-pills nav-stacked' output = [u'' % flatatt(final_attrs)] options = self.render_options(force_text(value), final_attrs['id'])