summaryrefslogtreecommitdiff
path: root/app/lib/django_comments/forms.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/lib/django_comments/forms.py')
-rw-r--r--app/lib/django_comments/forms.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/lib/django_comments/forms.py b/app/lib/django_comments/forms.py
index 7b7eafd..b4de54d 100644
--- a/app/lib/django_comments/forms.py
+++ b/app/lib/django_comments/forms.py
@@ -5,10 +5,10 @@ from django.conf import settings
from django.contrib.contenttypes.models import ContentType
from django.forms.utils import ErrorDict
from django.utils.crypto import salted_hmac, constant_time_compare
-from django.utils.encoding import force_text
+from django.utils.encoding import force_str
from django.utils.text import get_text_list
from django.utils import timezone
-from django.utils.translation import pgettext_lazy, ungettext, ugettext, ugettext_lazy as _
+from django.utils.translation import pgettext_lazy, ngettext, gettext, gettext_lazy as _
from . import get_model
@@ -137,7 +137,7 @@ class CommentDetailsForm(CommentSecurityForm):
"""
return dict(
content_type=ContentType.objects.get_for_model(self.target_object),
- object_pk=force_text(self.target_object._get_pk_val()),
+ object_pk=force_str(self.target_object._get_pk_val()),
user_name=self.cleaned_data["name"],
user_email=self.cleaned_data["email"],
user_url=self.cleaned_data["url"],