add parent_group to group

This commit is contained in:
Andreas Zweili 2022-04-02 10:39:29 +02:00
parent bf8e413534
commit aa0b7f8fc0
1 changed files with 3 additions and 0 deletions

View File

@ -7,6 +7,9 @@ class Group(models.Model):
name = models.CharField(max_length=50)
customer = models.ForeignKey(Customer, on_delete=models.CASCADE)
mail_address = models.EmailField(blank=True, null=True)
parent_group = models.ForeignKey(
"self", blank=True, null=True, on_delete=models.SET_NULL
)
def __str__(self):
return self.name