Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Sort HTML attributes on generated forms

  • Loading branch information...
commit 6b9f130278f98b3a15f7ad1959269c200e084f03 1 parent b9fc701
@clelland clelland authored spookylukey committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/forms/util.py
View
2  django/forms/util.py
@@ -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):
Please sign in to comment.
Something went wrong with that request. Please try again.