summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--django/forms/util.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/forms/util.py b/django/forms/util.py
index 9b1bcebe33..724f256e40 100644
--- a/django/forms/util.py
+++ b/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):