Sort HTML attributes on generated forms
This commit is contained in:
parent
b9fc70141a
commit
6b9f130278
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue