Ajout du module comm_op

This commit is contained in:
Ambulance Clerc
2023-10-10 13:50:37 +02:00
parent 31f842e0d9
commit 28042c851a
6 changed files with 29 additions and 0 deletions

14
comm_op/models.py Normal file
View File

@@ -0,0 +1,14 @@
from django.db import models
# Create your models here.
class cr_Category(models.Model):
sName = models.CharField("Désignation", max_length=250)
dtUpdated = models.DateTimeField('date updated', auto_now=True)
dtCreated = models.DateTimeField('date published', auto_now_add=True)
def __str__(self):
return self.sName
class Meta:
verbose_name = "catégorie"
verbose_name_plural = "catégories"