code: def copy_configurations(self, stages=None):
          
          if stages:
              confs = stages[0].stage_configurations()
              new_stage = stages[1]
          else:
              confs = self.copy_object.project_configurations()
              new_stage = None
  
          for conf in confs:
              new_conf = deepcopy(conf)
              new_conf.id = None
              new_conf.project = self.object
              new_conf.stage = new_stage
              new_conf.save()
docs: Copy configuretions