Merge branch 'guntherweissenbaeck/issue63'

This commit is contained in:
Gunther Weissenbaeck 2023-10-16 21:57:59 +02:00
commit 8c27709802
17 changed files with 199 additions and 4 deletions

27
app/contact/models.py Normal file
View file

@ -0,0 +1,27 @@
from django.db import models
from uuid import uuid4
from django.utils.translation import gettext_lazy as _
class Contact(models.Model):
id = models.UUIDField(primary_key=True, default=uuid4, editable=False)
name = models.CharField(
max_length=50, null=True, blank=True, verbose_name=_("Kontakt Name")
)
phone = models.CharField(
max_length=50, null=True, blank=True, verbose_name=_("Telefon")
)
email = models.CharField(
max_length=50, null=True, blank=True, verbose_name=_("Email")
)
address = models.CharField(
max_length=50, null=True, blank=True, verbose_name=_("Adresse")
)
comment = models.CharField(
max_length=50, null=True, blank=True, verbose_name=_("Bemerkungen")
)
class Meta:
verbose_name = _("Kontakt")
verbose_name_plural = _("Kontakte")