Skip to content

Commit 69cfee8

Browse files
committed
Switch over from the deprecated alias
1 parent b5ef2b9 commit 69cfee8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

devel/views.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from django.db.models import Count, Max
1818
from django.http import Http404, HttpResponse, HttpResponseRedirect
1919
from django.shortcuts import get_object_or_404, render
20-
from django.utils.encoding import force_text
20+
from django.utils.encoding import force_str
2121
from django.utils.http import http_date
2222
from django.utils.timezone import now
2323
from django.views.decorators.cache import cache_control, never_cache
@@ -303,7 +303,7 @@ def log_addition(request, obj):
303303
user_id=request.user.pk,
304304
content_type_id=ContentType.objects.get_for_model(obj).pk,
305305
object_id=obj.pk,
306-
object_repr=force_text(obj),
306+
object_repr=force_str(obj),
307307
action_flag=ADDITION,
308308
change_message="Added via Create New User form.")
309309

0 commit comments

Comments
 (0)