Fix bug when adding earliest snapshot
This commit is contained in:
parent
7fc60d83a4
commit
f359426997
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue