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

@@ -510,7 +510,7 @@ class Process(ModelWithHealthStats):
Machine,
on_delete=models.CASCADE,
null=False,
related_name='processes',
related_name='process_set',
help_text='Machine where this process executed'
)
@@ -545,14 +545,14 @@ class Process(ModelWithHealthStats):
Binary,
on_delete=models.SET_NULL,
null=True, blank=True,
related_name='processes',
related_name='process_set',
help_text='Binary used by this process'
)
iface = models.ForeignKey(
NetworkInterface,
on_delete=models.SET_NULL,
null=True, blank=True,
related_name='processes',
related_name='process_set',
help_text='Network interface used by this process'
)