summaryrefslogtreecommitdiff
path: root/django/forms/widgets.py
diff options
context:
space:
mode:
authorNick Pope <nick@nickpope.me.uk>2022-01-28 20:15:53 +0000
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2022-10-31 12:30:13 +0100
commitd3cb91db87b78629c0d2682630e90a048275179e (patch)
tree92476354cbb4df1bcff3cd1514a1bac6cbc98676 /django/forms/widgets.py
parenta320aab5129f4019b3c1d28b7a3b509582bc56f9 (diff)
Used more augmented assignment statements.
Identified using the following command: $ git grep -I '\(\<[_a-zA-Z0-9]\+\>\) *= *\1 *[-+/*^%&|<>@]'
Diffstat (limited to 'django/forms/widgets.py')
-rw-r--r--django/forms/widgets.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/django/forms/widgets.py b/django/forms/widgets.py
index 96cb910273..c5c531ada7 100644
--- a/django/forms/widgets.py
+++ b/django/forms/widgets.py
@@ -207,7 +207,7 @@ def media_property(cls):
else:
m = Media()
for medium in extend:
- m = m + base[medium]
+ m += base[medium]
return m + Media(definition)
return Media(definition)
return base
@@ -945,7 +945,7 @@ class MultiWidget(Widget):
"""
media = Media()
for w in self.widgets:
- media = media + w.media
+ media += w.media
return media
media = property(_get_media)