Skip to content

Commit 9e34f8a

Browse files
Merge pull request #20 from Hipo/deprecation-fixes
Use smart_str instead of smart_text, bump version to 1.0.7.
2 parents 9139d01 + d99e442 commit 9e34f8a

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

django_sloop/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from django.contrib.gis.db import models
55
from django.core.exceptions import ObjectDoesNotExist
66
from django.utils import timezone
7-
from django.utils.encoding import smart_text
7+
from django.utils.encoding import smart_str
88
from django.utils.translation import gettext_lazy as _
99
from django.template.defaultfilters import truncatechars
1010

@@ -105,7 +105,7 @@ class Meta:
105105
abstract = True
106106

107107
def __str__(self):
108-
return smart_text(_("Push Token %(push_token)s for %(user)s") % {
108+
return smart_str(_("Push Token %(push_token)s for %(user)s") % {
109109
"user": str(self.user),
110110
"push_token": self.push_token,
111111
})

setup.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
setup(
1111
name='django-sloop',
12-
version='1.0.6',
12+
version='1.0.7',
1313
packages=['django_sloop'],
1414
include_package_data=True,
1515
license='Apache-2.0',
@@ -26,6 +26,9 @@
2626
'Framework :: Django :: 2.0',
2727
'Framework :: Django :: 2.1',
2828
'Framework :: Django :: 2.2',
29+
'Framework :: Django :: 3.2',
30+
'Framework :: Django :: 4.0',
31+
'Framework :: Django :: 4.1',
2932
'Intended Audience :: Developers',
3033
'Operating System :: OS Independent',
3134
'License :: OSI Approved :: BSD License',

0 commit comments

Comments
 (0)