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
1 changed files with 2 additions and 0 deletions

View File

@ -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)