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

0
comm_op/__init__.py Normal file
View File

3
comm_op/admin.py Normal file
View File

@@ -0,0 +1,3 @@
from django.contrib import admin
# Register your models here.

6
comm_op/apps.py Normal file
View File

@@ -0,0 +1,6 @@
from django.apps import AppConfig
class CommOpConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'comm_op'

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"

3
comm_op/tests.py Normal file
View File

@@ -0,0 +1,3 @@
from django.test import TestCase
# Create your tests here.

3
comm_op/views.py Normal file
View File

@@ -0,0 +1,3 @@
from django.shortcuts import render
# Create your views here.