From 73d6b19c559edd96ec9ccce4e3fb971a4d5a8aed Mon Sep 17 00:00:00 2001 From: Ambulance Clerc Date: Sun, 1 May 2022 10:45:07 +0200 Subject: [PATCH] =?UTF-8?q?Ajout=20de=20pr=C3=A9sence=20de=20remarques=20s?= =?UTF-8?q?ur=20la=20page=20de=20recherche?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- collabs/models.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 = [