Commit 5d988351 authored by Rene Ladan's avatar Rene Ladan
Browse files

www/py-django-tagging: Remove expired port

2026-03-31 www/py-django-tagging: Upstream inactive since 5+ years, not compatible with Django 5+. Please use www/py-django-taggit instead
parent 05dadcfe
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -5177,3 +5177,4 @@ editors/wordgrinder||2026-03-31|Has expired: broken since 2023, maintainer AWOL
www/py-django-cron||2026-03-31|Has expired: Upstream inactive since 3+ years, not compatible with Django 5.2 or newer
deskutils/py-paperless|deskutils/py-paperless-ngx|2026-03-31|Has expired: Upstream repository archived since 2021 and no compatibility for Django 5+. Please migrate to deskutils/py-paperless-ngx
www/py-django-bleach||2026-03-31|Has expired: Upstream has been archived on November 5, 2024
www/py-django-tagging|www/py-django-taggit|2026-03-31|Has expired: Upstream inactive since 5+ years, not compatible with Django 5+. Please use www/py-django-taggit instead
+0 −1
Original line number Diff line number Diff line
@@ -1677,7 +1677,6 @@
    SUBDIR += py-django-storages
    SUBDIR += py-django-stubs-ext
    SUBDIR += py-django-tables2
    SUBDIR += py-django-tagging
    SUBDIR += py-django-taggit
    SUBDIR += py-django-tasks
    SUBDIR += py-django-tastypie

www/py-django-tagging/Makefile

deleted100644 → 0
+0 −26
Original line number Diff line number Diff line
PORTNAME=	django-tagging
PORTVERSION=	0.5.0
PORTREVISION=	4
CATEGORIES=	www python
MASTER_SITES=	PYPI
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}

MAINTAINER=	ports@caomhin.org
COMMENT=	Generic tagging application for Django
WWW=		https://github.com/Fantomas42/django-tagging

LICENSE=	BSD3CLAUSE MIT
LICENSE_COMB=	multi
LICENSE_FILE=	${WRKSRC}/LICENSE.txt

DEPRECATED=	Upstream inactive since 5+ years, not compatible with Django 5+. Please use www/py-django-taggit instead
EXPIRATION_DATE=2026-03-31

RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}django42>=0:www/py-django42@${PY_FLAVOR}

USES=		python
USE_PYTHON=	distutils autoplist

NO_ARCH=	yes

.include <bsd.port.mk>

www/py-django-tagging/distinfo

deleted100644 → 0
+0 −3
Original line number Diff line number Diff line
TIMESTAMP = 1587633783
SHA256 (django-tagging-0.5.0.tar.gz) = 28d68fa4831705e51ad7d1e845ed6dd9e354f9b6f8a5f63b655a430646ef4e8d
SIZE (django-tagging-0.5.0.tar.gz) = 42827
+0 −36
Original line number Diff line number Diff line
Add compatibility for Django 4.x

Obtained from:

https://patch-diff.githubusercontent.com/raw/Fantomas42/django-tagging/pull/23.patch

--- tagging/models.py.orig	2020-03-06 17:56:16 UTC
+++ tagging/models.py
@@ -5,7 +5,8 @@ from django.db import models
 from django.contrib.contenttypes.models import ContentType
 from django.db import connection
 from django.db import models
-from django.utils.encoding import smart_text
+from django.db.models.query_utils import Q
+from django.utils.encoding import smart_str
 from django.utils.translation import gettext_lazy as _
 
 from tagging import settings
@@ -155,8 +156,9 @@ class TagManager(models.Manager):
             filters = {}
 
         queryset = model._default_manager.filter()
-        for f in filters.items():
-            queryset.query.add_filter(f)
+        for k, v in filters.items():
+            # Add support for both Django 4 and inferior versions
+            queryset.query.add_q(Q((k, v)))
         usage = self.usage_for_queryset(queryset, counts, min_count)
 
         return usage
@@ -519,4 +521,4 @@ class TaggedItem(models.Model):
         verbose_name_plural = _('tagged items')
 
     def __str__(self):
-        return '%s [%s]' % (smart_text(self.object), smart_text(self.tag))
+        return '%s [%s]' % (smart_str(self.object), smart_str(self.tag))
Loading