diff --git a/program/models.py b/program/models.py index bf5abb47227681fc8df615b1103635c4e3a24da5..0b634d0c51b848ebe319dd0113d4de35909c66a8 100644 --- a/program/models.py +++ b/program/models.py @@ -975,12 +975,11 @@ class Schedule(models.Model): # If 'dryrun' is true, just return the projected changes instead of executing them if "dryrun" in sdl and sdl["dryrun"]: - output = { + return { "create": [model_to_dict(ts) for ts in create], "update": [model_to_dict(ts) for ts in update], "delete": [model_to_dict(ts) for ts in delete], } - return output """Database changes if no errors found"""