use new ids for ArchiveResult API

This commit is contained in:
Nick Sweeting 2024-08-17 23:03:43 -07:00
parent f72debfdb2
commit a271bcb4ce
No known key found for this signature in database
3 changed files with 12 additions and 9 deletions

View file

@ -347,8 +347,8 @@ class ArchiveResult(ABIDModel):
abid_rand_src = 'self.id'
EXTRACTOR_CHOICES = EXTRACTOR_CHOICES
old_id = models.BigIntegerField(default=rand_int_id, serialize=False, verbose_name='ID')
id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=True, unique=True)
old_id = models.BigIntegerField(default=rand_int_id, serialize=False, verbose_name='Old ID')
id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=True, unique=True, verbose_name='ID')
abid = ABIDField(prefix=abid_prefix)
snapshot = models.ForeignKey(Snapshot, on_delete=models.CASCADE)