allow blank email address for groups

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

View File

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