Ejemplo n.º 1
0
    def change_password(self, request, pk=None):
        allow_self_only(
            request.user, pk, _("You can't change other users passwords."))

        return change_password_endpoint(request)
Ejemplo n.º 2
0
    def change_password(self, request, pk=None):
        allow_self_only(request.user, pk,
                        _("You can't change other users passwords."))

        return change_password_endpoint(request)