Skip to content

Commit 0a2a228

Browse files
committed
use force_str instead of force_text for dj30
1 parent c0bd62b commit 0a2a228

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_fixtures.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -539,12 +539,12 @@ def admin_required_view(request):
539539
)
540540
django_testdir.makepyfile(
541541
"""
542-
from django.utils.encoding import force_text
542+
from django.utils.encoding import force_str
543543
from tpkg.app.models import MyCustomUser
544544
545545
def test_custom_user_model(admin_client):
546546
resp = admin_client.get('/admin-required/')
547-
assert force_text(resp.content) == 'You are an admin'
547+
assert force_str(resp.content) == 'You are an admin'
548548
"""
549549
)
550550

0 commit comments

Comments
 (0)