Skip to content

Commit 6d5e949

Browse files
committed
requirements: compatibility with djangorestframework v3.9 or higher
djangorestframework v3.9 deprecated the keyword argument "base_name" for routers. The old name works up to djangorestframework 3.10, but fails later. See encode/django-rest-framework#5990
1 parent ff58f7f commit 6d5e949

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

debian/control

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Build-Depends:
1818
python3-django-imagekit,
1919
python3-django-rules,
2020
python3-django-taggit,
21-
python3-djangorestframework,
21+
python3-djangorestframework (>= 3.9),
2222
python3-feedparser,
2323
python3-flake8,
2424
python3-html2text,

grouprise/features/rest_api/frontend/urls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
router = SimpleRouter()
77

8-
router.register(r'content/markdown', MarkdownView, base_name='markdown')
8+
router.register(r'content/markdown', MarkdownView, basename='markdown')
99
router.register(r'gestalten', GestaltSet, 'gestalt')
1010
router.register(r'gestalten/(?P<gestalt>\d+)/settings', GestaltSettingSet, 'gestalt_setting')
1111
router.register(r'groups', GroupSet, 'group')

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ django-ical # NOT IN DEBIAN
2121
django-imagekit # debian: python3-django-imagekit
2222
django-mailbox # NOT IN DEBIAN
2323
django-taggit # debian: python3-django-taggit
24-
djangorestframework # debian: python3-djangorestframework
24+
djangorestframework>=3.9 # debian: python3-djangorestframework
2525
feedparser # debian: python3-feedparser
2626
flake8 # debian: python3-flake8
2727
html2text # debian: python3-html2text

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy