move snapshot id to old_id

This commit is contained in:
Nick Sweeting 2024-08-18 00:24:38 -07:00
parent 951025228f
commit 8c50257fe9
No known key found for this signature in database
3 changed files with 26 additions and 6 deletions

View file

@ -266,7 +266,7 @@ class Link:
@cached_property
def snapshot(self):
from core.models import Snapshot
return Snapshot.objects.only('uuid').get(url=self.url)
return Snapshot.objects.only('id').get(url=self.url)
@cached_property
def snapshot_id(self):