Python django.contrib.auth.views.PasswordChangeView() Examples

The following are 2 code examples of django.contrib.auth.views.PasswordChangeView(). You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may also want to check out all available functions/classes of the module django.contrib.auth.views , or try the search function .
Example #1
Source File: views.py    From SRMS with MIT License 5 votes vote down vote up
def get_context_data(self, **kwargs):
        context = super(PasswordChangeView, self).get_context_data(**kwargs)
        context['main_page_title'] = 'Admin Change Password'
        context['panel_title'] = 'Admin Change Password'
        return context 
Example #2
Source File: test_view_password_change.py    From django-beginners-guide with MIT License 5 votes vote down vote up
def test_url_resolves_correct_view(self):
        view = resolve('/settings/password/')
        self.assertEquals(view.func.view_class, auth_views.PasswordChangeView)