Skip to content

Commit 7ba0aa2

Browse files
authored
[chores] Upgrade drf-yasg~=1.21.0 openwisp#306
Removed the workaround for DRF-yasg. Closes openwisp#306
1 parent 54d0f2a commit 7ba0aa2

File tree

2 files changed

+1
-15
lines changed

2 files changed

+1
-15
lines changed

openwisp_utils/storage.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,6 @@
77

88

99
class FileHashedNameMixin:
10-
# Workaround for DRF-yasg: https://github.com/axnsan12/drf-yasg/issues/761.
11-
# TODO: Remove this when DRF-Yasg introduces proper Django 4.0 support.
12-
patterns = (
13-
(
14-
"*.css",
15-
(
16-
"(?P<matched>url\\(['\"]{0,1}\\s*(?P<url>.*?)[\"']{0,1}\\))",
17-
(
18-
"(?P<matched>@import\\s*[\"']\\s*(?P<url>.*?)[\"'])",
19-
'@import url("%(url)s")',
20-
),
21-
),
22-
),
23-
)
2410

2511
default_excluded_patterns = ['leaflet/*/*.png']
2612
excluded_patterns = default_excluded_patterns + getattr(

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
'rest': [
6363
'djangorestframework~=3.13.0',
6464
'django-filter~=22.1', # django-filter uses CalVer
65-
'drf-yasg~=1.20.0',
65+
'drf-yasg~=1.21.0',
6666
],
6767
'celery': ['celery~=5.2.3'],
6868
},

0 commit comments

Comments
 (0)