diff --git a/haupt/haupt/apis/methods/runs.py b/haupt/haupt/apis/methods/runs.py index ca4cf64b55..4ae4c53266 100644 --- a/haupt/haupt/apis/methods/runs.py +++ b/haupt/haupt/apis/methods/runs.py @@ -92,7 +92,7 @@ def transfer_run(view, request, *args, **kwargs): ) view.run.project_id = dest_project.id - view.run.save(update_fields=["project_id"]) + view.run.save(update_fields=["project_id", "updated_at"]) if view.run.has_pipeline: Models.Run.all.filter(Q(pipeline=view.run) | Q(controller=view.run)).update( project_id=dest_project.id diff --git a/haupt/haupt/apis/project_resources/views/versions.py b/haupt/haupt/apis/project_resources/views/versions.py index 60c0f95763..fc8ce15f9c 100644 --- a/haupt/haupt/apis/project_resources/views/versions.py +++ b/haupt/haupt/apis/project_resources/views/versions.py @@ -318,7 +318,7 @@ def post(self, request, *args, **kwargs): ) self.version.project_id = dest_project.id - self.version.save(update_fields=["project_id"]) + self.version.save(update_fields=["project_id", "updated_at"]) add_version_contributors(self.version, users=[request.user]) self.audit(request, *args, **kwargs) return Response(status=status.HTTP_200_OK, data={}) diff --git a/haupt/haupt/db/signals/versions.py b/haupt/haupt/db/signals/versions.py index 843ca7ff78..224b2f4ea5 100644 --- a/haupt/haupt/db/signals/versions.py +++ b/haupt/haupt/db/signals/versions.py @@ -38,4 +38,4 @@ def check_related_run_to_artifact(sender, instance=None, created=False, **kwargs and run.versions.exclude(id=instance.id).count() == 0 ): run.meta_info.pop(META_IS_PROMOTED, None) - run.save(update_fields=["meta_info"]) + run.save(update_fields=["meta_info", "update_at"])