Improve how editions and purchases are displayed
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-11-14 23:45:41 +01:00
parent 8982fc5086
commit e158bc0623
6 changed files with 105 additions and 63 deletions

View File

@ -124,7 +124,12 @@ class Purchase(models.Model):
max_length=255, default="Unknown Name", null=True, blank=True
)
related_purchase = models.ForeignKey(
"Purchase", on_delete=models.SET_NULL, default=None, null=True, blank=True
"Purchase",
on_delete=models.SET_NULL,
default=None,
null=True,
blank=True,
related_name="related_purchases",
)
def __str__(self):