14 lines
439 B
Python
14 lines
439 B
Python
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" |