Fixes #63
This commit is contained in:
Gunther Weissenbaeck 2023-10-16 21:05:44 +02:00
parent a6833026c0
commit d651e03b12
18 changed files with 196 additions and 58 deletions

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

@ -0,0 +1,28 @@
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")