Kaydet (Commit) 6b9f1302 authored tarafından Ian Clelland's avatar Ian Clelland Kaydeden (comit) Luke Plant

Sort HTML attributes on generated forms

üst b9fc7014
......@@ -20,7 +20,7 @@ def flatatt(attrs):
The result is passed through 'mark_safe'.
"""
return format_html_join('', ' {0}="{1}"', attrs.items())
return format_html_join('', ' {0}="{1}"', sorted(attrs.items()))
@python_2_unicode_compatible
class ErrorDict(dict):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment