Skip to content

Commit

Permalink
admin 在 django1.11.2 中出错 build_attrs() got an unexpected keyword argu…
Browse files Browse the repository at this point in the history
…ment name
  • Loading branch information
wgbbiao committed Jun 23, 2017
1 parent 5d0dd31 commit 53d8520
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xadmin/views/dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'<ul%s>' % flatatt(final_attrs)]
options = self.render_options(force_text(value), final_attrs['id'])
Expand Down

0 comments on commit 53d8520

Please sign in to comment.