From f359426997e45fa2c000771f4a3a829de68f7171 Mon Sep 17 00:00:00 2001 From: "Edgar P. Burkhart" Date: Mon, 30 May 2022 14:48:28 +0200 Subject: [PATCH] Fix bug when adding earliest snapshot --- nummi/main/models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nummi/main/models.py b/nummi/main/models.py index 23a22ba..65544fb 100644 --- a/nummi/main/models.py +++ b/nummi/main/models.py @@ -134,6 +134,8 @@ class Snapshot(models.Model): .first() ) _prevnext.save(only_super=True) + _next.previous = None + super().save(*args, **kwargs) _next.previous = self _next.save(only_super=True)