Skip to content

Commit

Permalink
Replace django-rest-auth with dj-rest-auth
Browse files Browse the repository at this point in the history
django-rest-auth is unmaintained:
Tivix/django-rest-auth#568
  • Loading branch information
nattyg93 committed Mar 6, 2021
1 parent 280ce5c commit fa73a68
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 24 deletions.
39 changes: 19 additions & 20 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ authors = ["Ionata <[email protected]>"]
python = "^3.6.1"
celery = { version = "^4.3", extras = ["redis"] }
celery-prometheus-exporter = "^1.7"
dj-rest-auth = "^2.1.3"
django = "^2.2"
django-allauth = "^0.39.1"
django-anymail = { version = "^6.1", extras = ["mailgun"] }
Expand All @@ -20,7 +21,6 @@ django-environ = "^0.4.5"
django-extensions = "^2.2"
django-filter = "^2.2"
django-redis = "~=4.10.0" # does not follow semver
django-rest-auth = "^0.9.5"
django-storages = { version = "^1.7", extras = ["boto3"] }
djangorestframework = "~=3.12.2" # does not follow semver
djangorestframework-filters = ">=1.0.0.dev0"
Expand Down
2 changes: 1 addition & 1 deletion src/users/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
# pylint: disable=abstract-method
from uuid import uuid4

from dj_rest_auth import serializers as auth_serializers
from django.conf import settings
from django.contrib.auth.password_validation import validate_password
from django.core.exceptions import ValidationError as DjangoValidationError
from django.utils.http import urlsafe_base64_encode as b64e
from django.utils.translation import ugettext_lazy as _
from rest_auth import serializers as auth_serializers
from rest_framework.exceptions import ValidationError
from rest_framework_json_api import serializers

Expand Down
2 changes: 1 addition & 1 deletion src/users/views.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
"""Views for the users app."""
from typing import List, Type

from dj_rest_auth import views as auth_views
from django.utils.decorators import method_decorator
from django.utils.translation import ugettext_lazy as _
from django.views.decorators.debug import sensitive_post_parameters
from rest_auth import views as auth_views
from rest_framework import mixins, status
from rest_framework.exceptions import NotAuthenticated
from rest_framework.permissions import AllowAny
Expand Down
2 changes: 1 addition & 1 deletion src/webapp/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@
INSTALLED_APPS += [
"rest_framework",
"rest_framework.authtoken",
"rest_auth",
"dj_rest_auth",
"allauth",
"django_filters",
]
Expand Down

0 comments on commit fa73a68

Please sign in to comment.