Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop deprecated force_text() #327

Merged
merged 3 commits into from
Apr 24, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,16 @@
BI indicates a backward incompatible change. Take caution when upgrading to a
version with these. Your code will need to be updated to continue working.

## 3.0.3

* Drop deprecated `force_text()`

## 3.0.2

* Drop Django 2.0 and Python 2,7, 3.4, and 3.5 support
* Add Django 2.1, 2.2 and 3.0, and Python 3.7 and 3.8 support
* Update packaging configs

## 2.0.3

* fixed breaking change in 2.0.2 where context did not have uidb36 and token
Expand Down
4 changes: 2 additions & 2 deletions account/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
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.encoding import force_str
from django.utils.translation import gettext_lazy as _

from account.conf import settings
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
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

setup(
name="django-user-accounts",
version="3.0.2",
version="3.0.3",
author="Brian Rosner",
author_email="[email protected]",
description="a Django user account app",
Expand Down