def save(self):
        """Find the run with this build, or create a new one."""
        try:
            this_run = model.Run.objects.get(
                series=self.run,
                build=self.cleaned_data["build"],
                )
        except __HOLE__:
            this_run = self.run.clone_for_series(
                build=self.cleaned_data["build"],
                user=self.user,
                )
            this_run.activate()
        # now we need to return this new run as the one to be executed.
        return super(EnvironmentBuildSelectionForm, self).save(), this_run.id
dataset/ETHPy150Open mozilla/moztrap/moztrap/view/runtests/forms.py/EnvironmentBuildSelectionForm.save