adding not

This commit is contained in:
Bhaarat Sharma 2015-10-18 08:23:36 -04:00
parent 296a49a04b
commit 48eb40ae47

View File

@ -216,5 +216,5 @@ class PasswordChangeSerializer(serializers.Serializer):
def save(self):
self.set_password_form.save()
if self.logout_on_password_change:
if not self.logout_on_password_change:
update_session_auth_hash(self.request, self.user)