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"