One customer can have multiple project managers

This commit is contained in:
Andreas Zweili 2023-03-11 16:52:00 +01:00
parent 7bd564d29d
commit 7a825b8c4d
1 changed files with 2 additions and 2 deletions

View File

@ -9,8 +9,8 @@ class Owner(Company):
class Customer(Company):
name = models.CharField(max_length=50, unique=True)
project_manager = models.ForeignKey(
InventoryUser, null=True, blank=True, on_delete=models.SET_NULL
project_manager = models.ManyToManyField(
InventoryUser, null=True, blank=True
)
class Meta: