summaryrefslogtreecommitdiff
path: root/django/forms/boundfield.py
diff options
context:
space:
mode:
authorNick Pope <nick.pope@flightdataservices.com>2017-12-11 12:08:45 +0000
committerTim Graham <timograham@gmail.com>2017-12-11 07:08:45 -0500
commitd13a9e44ded4e93570c6ba42ec84e45ddca2505b (patch)
tree0df16e6538d8794c39bd62b5a46879b8abe6572c /django/forms/boundfield.py
parenta9e5ac823df8ba8b786b6450c967ca378c008d0e (diff)
Fixed #28909 -- Simplified code using tuple/list/set/dict unpacking.
Diffstat (limited to 'django/forms/boundfield.py')
-rw-r--r--django/forms/boundfield.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/forms/boundfield.py b/django/forms/boundfield.py
index dba54e588a..27e80c65e7 100644
--- a/django/forms/boundfield.py
+++ b/django/forms/boundfield.py
@@ -153,7 +153,7 @@ class BoundField:
if id_:
id_for_label = widget.id_for_label(id_)
if id_for_label:
- attrs = dict(attrs or {}, **{'for': id_for_label})
+ attrs = {**(attrs or {}), 'for': id_for_label}
if self.field.required and hasattr(self.form, 'required_css_class'):
attrs = attrs or {}
if 'class' in attrs: