Ajout du module comm_op
This commit is contained in:
0
comm_op/__init__.py
Normal file
0
comm_op/__init__.py
Normal file
3
comm_op/admin.py
Normal file
3
comm_op/admin.py
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
from django.contrib import admin
|
||||||
|
|
||||||
|
# Register your models here.
|
6
comm_op/apps.py
Normal file
6
comm_op/apps.py
Normal 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
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"
|
3
comm_op/tests.py
Normal file
3
comm_op/tests.py
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
from django.test import TestCase
|
||||||
|
|
||||||
|
# Create your tests here.
|
3
comm_op/views.py
Normal file
3
comm_op/views.py
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
from django.shortcuts import render
|
||||||
|
|
||||||
|
# Create your views here.
|
Reference in New Issue
Block a user