def METHOD_NAME(self, *args, **kwargs):
    if self.redirect_type == "exact" and "$rest" in self.from_url:
        self.from_url_without_rest = self.from_url.replace("$rest", "")
    super().METHOD_NAME(*args, **kwargs)