diff options
| author | Claude Paroz <claude@2xlibre.net> | 2022-01-21 15:46:37 +0100 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2022-01-22 16:38:14 +0100 |
| commit | 7c4f3965098baad2396e24501e09237425a7bd6f (patch) | |
| tree | 278ceb3d95a513df3d74941eeb46b927a04224a3 /django/forms | |
| parent | 9dc65263d47a5b8857492c10ce151bab83cfe672 (diff) | |
Stopped including type="text/css" attributes for CSS link tags.
Diffstat (limited to 'django/forms')
| -rw-r--r-- | django/forms/widgets.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/forms/widgets.py b/django/forms/widgets.py index cb8fb5e92a..05667f8e44 100644 --- a/django/forms/widgets.py +++ b/django/forms/widgets.py @@ -90,7 +90,7 @@ class Media: media = sorted(self._css) return chain.from_iterable([ format_html( - '<link href="{}" type="text/css" media="{}" rel="stylesheet">', + '<link href="{}" media="{}" rel="stylesheet">', self.absolute_path(path), medium ) for path in self._css[medium] ] for medium in media) |
