From 7dac57cfd1d281c1e12b7eaa8a0f3a00a269ab46 Mon Sep 17 00:00:00 2001 From: RamezIssac Date: Tue, 7 Jun 2022 08:43:20 +0200 Subject: [PATCH] Version 2.9.1 bump updates --- .travis.yml | 4 ++-- demo_proj/demo_app/apps.py | 5 ++--- demo_proj/demo_app/models.py | 3 +-- setup.py | 2 +- tests/urls.py | 4 ++-- 5 files changed, 8 insertions(+), 10 deletions(-) diff --git a/.travis.yml b/.travis.yml index 0ff19cc..dd36b6c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,8 +6,8 @@ python: env: - DJANGO=django==1.11.28 - DJANGO=django==2.2.12 - - DJANGO=django==3.0.5 - - DJANGO=django==3.1 + - DJANGO=django==3.2 + - DJANGO=django==4.0 before_install: - wget https://github.com/mozilla/geckodriver/releases/download/v0.17.0/geckodriver-v0.17.0-linux64.tar.gz diff --git a/demo_proj/demo_app/apps.py b/demo_proj/demo_app/apps.py index 83f7647..9fcff05 100644 --- a/demo_proj/demo_app/apps.py +++ b/demo_proj/demo_app/apps.py @@ -2,7 +2,8 @@ from __future__ import unicode_literals from django.apps import AppConfig -from django.utils.translation import ugettext_lazy as _ +from django.utils.translation import gettext_lazy as _ + class DemoAppConfig(AppConfig): name = 'demo_app' @@ -14,5 +15,3 @@ def ready(self): dummy_trans = _('Can deliver pizzas') dummy_trans = _('Can do stuff') dummy_trans = _('Can do more stuff') - - diff --git a/demo_proj/demo_app/models.py b/demo_proj/demo_app/models.py index 92814f7..22295c3 100644 --- a/demo_proj/demo_app/models.py +++ b/demo_proj/demo_app/models.py @@ -2,7 +2,7 @@ from __future__ import unicode_literals from django.db import models -from django.utils.translation import ugettext_lazy as _ +from django.utils.translation import gettext_lazy as _ class ModelWithDefaultPermissions(models.Model): @@ -41,6 +41,5 @@ class Meta: class ModelWithChangedDefaultPermissions(models.Model): - class Meta: default_permissions = ('view',) diff --git a/setup.py b/setup.py index 6818465..e61b4fc 100644 --- a/setup.py +++ b/setup.py @@ -9,7 +9,7 @@ setup( name='django-tabular-permissions', - version='2.9', + version='2.9.1', packages=['tabular_permissions'], include_package_data=True, license='BSD License', diff --git a/tests/urls.py b/tests/urls.py index 643ea40..ee60926 100644 --- a/tests/urls.py +++ b/tests/urls.py @@ -1,13 +1,13 @@ try: from django.conf.urls import url except ImportError: - from django.urls import url + from django.urls import path from django.contrib import admin urlpatterns = [ - url(r'^admin/', admin.site.urls), + path(r'^admin/', admin.site.urls), ]