From 8a39bc6644d9b1000b6b164c2bca91610855299b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Daniel?= Date: Mon, 25 Mar 2024 07:49:04 +0100 Subject: [PATCH] chore: Django bump to <=5.0 --- .github/workflows/django.yml | 3 +++ generic_m2m_field/models.py | 2 +- setup.py | 5 ++--- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/django.yml b/.github/workflows/django.yml index 11706c1..884908e 100644 --- a/.github/workflows/django.yml +++ b/.github/workflows/django.yml @@ -34,6 +34,9 @@ jobs: - python-version: "3.11" django-version: Django==3.2 + - python-version: "3.11" + django-version: Django==4.2 + steps: - uses: actions/checkout@v2 - name: Set up Python ${{ matrix.python-version }} diff --git a/generic_m2m_field/models.py b/generic_m2m_field/models.py index 2af3b34..06c042e 100644 --- a/generic_m2m_field/models.py +++ b/generic_m2m_field/models.py @@ -7,7 +7,7 @@ from django.db import models from django.db.models.functions import Cast from django.utils.functional import cached_property -from django.utils.translation import ugettext_lazy as _ +from django.utils.translation import gettext_lazy as _ from chamber.models import SmartModel, SmartQuerySet from chamber.shortcuts import get_object_or_none diff --git a/setup.py b/setup.py index f30c5df..271b121 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ setup( name='skip-django-generic-m2m-field', - version='0.0.9.3', + version='0.1.0', description="Django generic many to many field library.", keywords='django, fields, generic', author='Lubos Matl', @@ -27,8 +27,7 @@ 'Topic :: Internet :: WWW/HTTP :: Site Management', ], install_requires=[ - 'django>=2.2.9, <4.0', - 'skip-django-chamber>=0.6.16.3' + 'django>=2.2.9, <5.0', ], zip_safe=False )