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

Fix default_url_generator #609

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion dj_rest_auth/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

def default_url_generator(request, user, temp_key):
path = reverse(
'password_reset_confirm',
'rest_password_reset_confirm',
args=[user_pk_to_url_str(user), temp_key],
)

Expand Down
10 changes: 2 additions & 8 deletions docs/faq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,7 @@ FAQ
If you don't want to use API on that step, then just use ConfirmEmailView view from:
django-allauth https://github.com/pennersr/django-allauth/blob/master/allauth/account/views.py


2. I get an error: Reverse for 'password_reset_confirm' not found.

You need to add `password_reset_confirm` url into your ``urls.py`` (at the top of any other included urls). Please check the ``urls.py`` module inside demo app example for more details.


3. How can I update UserProfile assigned to User model?
2. How can I update UserProfile assigned to User model?

Assuming you already have UserProfile model defined like this

Expand All @@ -42,7 +36,7 @@ FAQ

from rest_framework import serializers
from dj_rest_auth.serializers import UserDetailsSerializer

class UserProfileSerializer(serializers.ModelSerializer):
class Meta:
model = UserProfile
Expand Down