Skip to content

Commit

Permalink
Merge pull request #20 from Hipo/deprecation-fixes
Browse files Browse the repository at this point in the history
Use smart_str instead of smart_text, bump version to 1.0.7.
  • Loading branch information
omerfarukabaci authored Nov 8, 2022
2 parents 9139d01 + d99e442 commit 9e34f8a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions django_sloop/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from django.contrib.gis.db import models
from django.core.exceptions import ObjectDoesNotExist
from django.utils import timezone
from django.utils.encoding import smart_text
from django.utils.encoding import smart_str
from django.utils.translation import gettext_lazy as _
from django.template.defaultfilters import truncatechars

Expand Down Expand Up @@ -105,7 +105,7 @@ class Meta:
abstract = True

def __str__(self):
return smart_text(_("Push Token %(push_token)s for %(user)s") % {
return smart_str(_("Push Token %(push_token)s for %(user)s") % {
"user": str(self.user),
"push_token": self.push_token,
})
Expand Down
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

setup(
name='django-sloop',
version='1.0.6',
version='1.0.7',
packages=['django_sloop'],
include_package_data=True,
license='Apache-2.0',
Expand All @@ -26,6 +26,9 @@
'Framework :: Django :: 2.0',
'Framework :: Django :: 2.1',
'Framework :: Django :: 2.2',
'Framework :: Django :: 3.2',
'Framework :: Django :: 4.0',
'Framework :: Django :: 4.1',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'License :: OSI Approved :: BSD License',
Expand Down

0 comments on commit 9e34f8a

Please sign in to comment.