From 16bd2a7d666c6d4cce4d7c973800f9f7320a557f Mon Sep 17 00:00:00 2001 From: Klafyvel Date: Mon, 22 Jan 2018 14:03:25 +0100 Subject: [PATCH] =?UTF-8?q?Pas=20de=20mod=C3=A8le=20vid=C3=A9o=20et=20docu?= =?UTF-8?q?mentation.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- content/migrations/0004_video.py | 20 -------------------- content/models.py | 6 +++--- 2 files changed, 3 insertions(+), 23 deletions(-) delete mode 100644 content/migrations/0004_video.py diff --git a/content/migrations/0004_video.py b/content/migrations/0004_video.py deleted file mode 100644 index 094e407..0000000 --- a/content/migrations/0004_video.py +++ /dev/null @@ -1,20 +0,0 @@ -# Generated by Django 2.0.1 on 2018-01-21 00:07 - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('content', '0003_auto_20180120_2352'), - ] - - operations = [ - migrations.CreateModel( - name='Video', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('name', models.CharField(max_length=255)), - ], - ), - ] diff --git a/content/models.py b/content/models.py index 8961ae0..77808b3 100644 --- a/content/models.py +++ b/content/models.py @@ -3,6 +3,7 @@ from django.contrib.auth.models import Group class Category(models.Model): + """Une catégorie de contenu.""" name = models.CharField( max_length=255, name="Nom de la catégorie" @@ -10,6 +11,7 @@ class Category(models.Model): class School(models.Model): + """Une école.""" name = models.CharField( max_length=255 ) @@ -17,11 +19,9 @@ class School(models.Model): def __str__(self): return self.name -class Video(models.Model): - name = models.CharField(max_length=255) - class Content(models.Model): + """Un contenu du site (vidéo).""" name = models.CharField( max_length=255, name="Nom du contenu"