diff --git a/collabs/models.py b/collabs/models.py index f519c65..19d16f4 100644 --- a/collabs/models.py +++ b/collabs/models.py @@ -7,6 +7,20 @@ from django.conf import settings from django.utils import timezone from django.contrib import admin +class Collabs_hour_types(models.Model): + + + name = models.CharField("Dénomination", max_length=100) + dtUpdate = models.DateTimeField('Date de modification', auto_now=True) + dtCreated = models.DateTimeField('Date de création', auto_now_add=True) + + def __str__(self): + return self.name + + class Meta: + verbose_name = "type" + verbose_name_plural = "types" + class Collabs_hour(models.Model): BASES_CHOICES = [