use process_set for related name not processes

This commit is contained in:
Nick Sweeting
2025-12-30 12:55:23 -08:00
parent 1b49ea9a0e
commit ba8c28a866
4 changed files with 7 additions and 8 deletions

View File

@@ -351,7 +351,7 @@ class Snapshot(ModelWithOutputDir, ModelWithConfig, ModelWithNotes, ModelWithHea
def binary_set(self):
"""Get all Binary objects used by processes related to this snapshot."""
from archivebox.machine.models import Binary
return Binary.objects.filter(process__archiveresult__snapshot_id=self.id).distinct()
return Binary.objects.filter(process_set__archiveresult__snapshot_id=self.id).distinct()
def save(self, *args, **kwargs):
is_new = self._state.adding