code: def get_success_url(self):
          
  
          if self.stage_id:
              url = reverse('projects_stage_view', args=(self.project_id, self.stage_id))
          else:
              url = reverse('projects_project_view', args=(self.project_id,))
  
          return url
docs: Get the url depending on what type of configuration I deleted.