This document records all notable changes to fnpdjango.
+## 0.6 (2022-07-22)
+
+- Support for Django up to 4.0.
+- Drop support for Django 1.11.
+
+
## 0.5 (2021-07-05)
- Support for Django up to 3.2.
# Source: https://gist.github.com/jeremyjbowers/e8d007446155c12033e6
import csv
from django.http import HttpResponse
-from django.utils.translation import ugettext_lazy as _
+from django.utils.translation import gettext_lazy as _
def export_as_csv_action(description=_("Export selected objects as CSV file"), fields=None, exclude=None, header=True):
def __str__(self):
if not self.real:
- from django.utils.translation import ugettext_lazy
- LazyUGettextLazy._ = staticmethod(ugettext_lazy)
+ from django.utils.translation import gettext_lazy
+ LazyUGettextLazy._ = staticmethod(gettext_lazy)
LazyUGettextLazy.real = True
return str(self._(self.text))
setup(
name='fnpdjango',
- version='0.5',
+ version='0.6',
author='Radek Czajka',
author_email='radekczajka@nowoczesnapolska.org.pl',
url='',
'fnpdjango.management.commands': ['babel.cfg'],
},
install_requires=[
- 'Django>=1.11,<4.0',
+ 'Django>=1.11,<4.1',
],
extras_require={
'textile': [
-from django.conf.urls import url
+from django.urls import path
from django.contrib import admin
from . import views
urlpatterns = [
- url(r'^admin/', admin.site.urls),
- url(r'^ip/$', views.ip),
+ path('admin/', admin.site.urls),
+ path('ip/', views.ip),
]
#
[tox]
envlist=clear,
- d111-py{36,37},
d20-py{36,37},
d21-py{36,37},
- d22-py{36,37,38},
- d30-py{36,37,38},
+ d22-py{36,37,38,39},
+ d30-py{36,37,38,39},
d31-py{36,37,38,39},
- d32-py{36,37,38,39},
+ d32-py{36,37,38,39,310},
+ d40-py{38,39,310}
stats
[testenv]
commands=coverage run --source=fnpdjango --append --branch runtests.py
deps=
- django-pipeline==2.0.5
- d111: Django>=1.11,<2.0
+ django-pipeline==2.0.8
d20: Django>=2.0,<2.1
d21: Django>=2.1,<2.2
d22: Django>=2.2,<3.0
d30: Django>=3.0,<3.1
d31: Django>=3.1,<3.2
d32: Django>=3.2,<4.0
+ d40: Django>=4.0,<4.1
coverage
extras=
textile