Link groups to services

This commit is contained in:
Andreas Zweili 2023-03-11 15:55:38 +01:00
parent dbc302a5cb
commit aed8919024
1 changed files with 4 additions and 0 deletions

View File

@ -1,5 +1,6 @@
from django.db import models
from core.models import Service
from customers.models import Customer
@ -11,6 +12,9 @@ class Group(models.Model):
parent_group = models.ForeignKey(
"self", blank=True, null=True, on_delete=models.SET_NULL
)
service = models.ForeignKey(
Service, blank=True, null=True, on_delete=models.SET_NULL
)
def __str__(self):
return self.name