Update serializers.py

This is for django 4.0> update
This commit is contained in:
Burak Karahan 2022-01-18 17:04:42 +03:00 committed by GitHub
parent 3c36004c44
commit 9e662f3596
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,7 +3,7 @@ from django.conf import settings
from django.contrib.auth.forms import PasswordResetForm, SetPasswordForm
from django.contrib.auth.tokens import default_token_generator
from django.utils.http import urlsafe_base64_decode as uid_decoder
from django.utils.translation import ugettext_lazy as _
from django.utils.translation import gettext_lazy as _
from django.utils.encoding import force_text
from rest_framework import serializers, exceptions