code: def get_absolute_url(self):
          
  
          # Determine if this configuration is on a stage
          if self.stage:
              # Stage specific configurations go back to the stage view
              url = reverse('projects_stage_view', args=(self.project.pk, self.stage.pk))
          else:
              # Project specific configurations go back to the project page
              url = self.project.get_absolute_url()
  
          return url
docs: Determine where I am coming from and where I am going