Skip to content

Commit

Permalink
Fix for Django 1.11 build_attrs. Issue chrisspen#92.
Browse files Browse the repository at this point in the history
  • Loading branch information
billyquith committed May 17, 2017
1 parent b77fa54 commit 04bbfe1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chroniker/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def render(self, name, value, attrs=None):
value)
value = "<a href='%s'>%s</a>" % (related_url, escape(obj))

final_attrs = self.build_attrs(attrs, name=name)
final_attrs = self.build_attrs({ name: name })
return mark_safe("<div%s>%s</div>" % (
flatatt(final_attrs),
linebreaks(value)))
Expand Down

0 comments on commit 04bbfe1

Please sign in to comment.