Skip to content

Commit

Permalink
Drop features deprecated in Django 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mfonism committed Aug 12, 2020
1 parent ba4f170 commit ffd02b1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions account/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
from django import forms
from django.contrib import auth
from django.contrib.auth import get_user_model
from django.utils.encoding import force_text
from django.utils.translation import gettext_lazy as _
from django.utils.encoding import force_str
from django.utils.translation import ugettext_lazy as _

from account.conf import settings
from account.hooks import hookset
Expand All @@ -25,7 +25,7 @@ def __init__(self, *args, **kwargs):
def to_python(self, value):
if value in self.empty_values:
return ""
value = force_text(value)
value = force_str(value)
if self.strip:
value = value.strip()
return value
Expand Down

0 comments on commit ffd02b1

Please sign in to comment.