Fix bug when adding earliest snapshot

This commit is contained in:
Edgar P. Burkhart 2022-05-30 14:48:28 +02:00
parent 7fc60d83a4
commit f359426997
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227

View file

@ -134,6 +134,8 @@ class Snapshot(models.Model):
.first() .first()
) )
_prevnext.save(only_super=True) _prevnext.save(only_super=True)
_next.previous = None
super().save(*args, **kwargs)
_next.previous = self _next.previous = self
_next.save(only_super=True) _next.save(only_super=True)