code: def change_password(self, new_password):
          
          self.set_password(new_password)
          self.save()
          password_changed.send(sender=self.__class__, user=self)
docs: Changes password and sends a signal