Skip to content
Snippets Groups Projects
Commit 580dfcf5 authored by Bas Couwenberg's avatar Bas Couwenberg
Browse files

Add patch to fix FTBFS with python3.11. (closes: #1028671)

parent d4fb2d06
No related branches found
No related tags found
No related merge requests found
python-django-tagging (1:0.5.0-4) UNRELEASED; urgency=medium
* Team upload.
* Add patch to fix FTBFS with python3.11.
(closes: #1028671)
-- Bas Couwenberg <sebastic@debian.org> Thu, 19 Jan 2023 17:12:18 +0100
python-django-tagging (1:0.5.0-3) unstable; urgency=medium
* Team upload
......
Description: Fix FTBFS with python3.11.
Author: Bas Couwenberg <sebastic@debian.org>
Bug-Debian: https://bugs.debian.org/1028671
--- a/docs/index.rst
+++ b/docs/index.rst
@@ -768,7 +768,7 @@ list items of a particular model class w
from shop.apps.products.models import Widget
urlpatterns = patterns('',
- url(r'^widgets/tag/(?P<tag>[^/]+(?u))/$',
+ url(r'(?u)^widgets/tag/(?P<tag>[^/]+)/$',
TaggedObjectList.as_view(model=Widget, paginate_by=10, allow_empty=True),
name='widget_tag_detail'),
)
--- a/tagging/tests/urls.py
+++ b/tagging/tests/urls.py
@@ -16,5 +16,5 @@ urlpatterns = [
related_tags=True)),
re_path(r'^no-tag/$', TaggedObjectList.as_view(model=Article)),
re_path(r'^no-query-no-model/$', TaggedObjectList.as_view()),
- re_path(r'^(?P<tag>[^/]+(?u))/$', TaggedObjectList.as_view(model=Article)),
+ re_path(r'(?u)^(?P<tag>[^/]+)/$', TaggedObjectList.as_view(model=Article)),
]
......@@ -2,3 +2,4 @@ Use-local-inventory-for-intersphinx.patch
django-4.x-fixes/Use-smart_str-instead-of-deprecated-smart_text-Django-fun.patch
django-4.x-fixes/Use-re_path-instead-of-deprecated-url-Django-function.patch
django-4.x-fixes/Add-support-for-Django-4-compatibility.patch
python3.11.patch
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment