def save(self):
        try:
            this_run = model.Run.objects.get(
                series=self.run,
                build=self.cleaned_data["build"],
                )
        except ObjectDoesNotExist:
            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
Format date, time, longint values.
dataset/ETHPy150Open mozilla/moztrap/moztrap/view/runtests/forms.py/EnvironmentBuildSelectionForm.save--crossover with--dataset/ETHPy150Open frappe/frappe/frappe/database.py/Database.convert_to_simple_type