Ajout du module comm_op
This commit is contained in:
14
comm_op/models.py
Normal file
14
comm_op/models.py
Normal 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"
|
Reference in New Issue
Block a user