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

Change password link broken again #78

Closed
psychok7 opened this issue Nov 23, 2016 · 1 comment
Closed

Change password link broken again #78

psychok7 opened this issue Nov 23, 2016 · 1 comment

Comments

@psychok7
Copy link

There seems to have been a regression with issue #62 and #64 using Django==1.10.3 and django-authtools==1.5.0

As a workaround i did this custom form (without the translation _):

from django.contrib.auth.forms import UserChangeForm as DjangoUserChangeForm


from authtools.forms import UserChangeForm


class CustomAdminUserChangeForm(UserChangeForm):
    def __init__(self, *args, **kwargs):
        super(CustomAdminUserChangeForm, self).__init__(*args, **kwargs)
        if not self.fields['password'].help_text:
            self.fields['password'].help_text = (
                "Raw passwords are not stored, so there is no way to see this"
                " user's password, but you can change the password using"
                " <a href=\"../password/\">this form</a>.")
@psychok7
Copy link
Author

This issue seems to be fixed with authtools==1.6.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant