Skip to content

Commit

Permalink
Fixed build_attrs() usage for Django 1.11
Browse files Browse the repository at this point in the history
  • Loading branch information
vdboor committed Apr 28, 2017
1 parent 5f59d69 commit 34c69ed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fluent_contents/forms/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ def __init__(self, attrs=None):

def render(self, name, value, attrs=None):
value = smart_text(value or u'')
final_attrs = self.build_attrs(attrs, name=name)
final_attrs = self.build_attrs(attrs) # signature changed in Django 1.11
final_attrs['name'] = name

if 'class' in final_attrs:
final_attrs['class'] += ' cp-wysiwyg-widget'
Expand Down

0 comments on commit 34c69ed

Please sign in to comment.