diff options
Diffstat (limited to 'django/forms')
| -rw-r--r-- | django/forms/widgets.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/django/forms/widgets.py b/django/forms/widgets.py index ee1966b76f..482c718118 100644 --- a/django/forms/widgets.py +++ b/django/forms/widgets.py @@ -75,7 +75,9 @@ class Media(StrAndUnicode): def add_js(self, data): if data: - self._js.extend([path for path in data if path not in self._js]) + for path in data: + if path not in self._js: + self._js.append(path) def add_css(self, data): if data: |
