aviary first view and template
This commit is contained in:
parent
462b9ff224
commit
5e5605524f
8 changed files with 61 additions and 21 deletions
|
@ -1,12 +1,19 @@
|
|||
from uuid import uuid4
|
||||
|
||||
from django.db import models
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
|
||||
|
||||
class Aviary(models.Model):
|
||||
id = models.UUIDField(primary_key=True, default=uuid4, editable=False)
|
||||
description = models.CharField(max_length=256)
|
||||
condition = models.CharField(max_length=256)
|
||||
last_ward_round = models.DateField()
|
||||
description = models.CharField(
|
||||
max_length=256, verbose_name=_("Beschreibung"))
|
||||
condition = models.CharField(max_length=256, verbose_name=_("Zustand"))
|
||||
last_ward_round = models.DateField(verbose_name=_("letzte Visite"))
|
||||
|
||||
class Meta:
|
||||
verbose_name = _("Voliere")
|
||||
verbose_name_plural = _("Volieren")
|
||||
|
||||
def __str__(self):
|
||||
return self.description
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue