Skip to content
Snippets Groups Projects
Commit f1382148 authored by Bastien Abadie's avatar Bastien Abadie
Browse files

Add link to password change form in admin

See merge request !95
parents cb663ded c11246bb
No related branches found
No related tags found
1 merge request!95Add link to password change form in admin
......@@ -39,7 +39,7 @@ class UserChangeForm(forms.ModelForm):
the user, but replaces the password field with admin's
password hash display field.
"""
password = ReadOnlyPasswordHashField()
password = ReadOnlyPasswordHashField(help_text='<a href="../password/">Change password</a>')
class Meta:
model = User
......
from arkindex.users import providers
from arkindex.users.providers import get_provider
from django.test import TestCase
class TestProviders(TestCase):
def test_get_provider(self):
class SomeProvider(object):
pass
providers.oauth_providers = [SomeProvider]
self.assertEqual(get_provider('SomeProvider'), SomeProvider)
self.assertIsNone(get_provider('doesnotexist'))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment