Pas de modèle vidéo et documentation.

This commit is contained in:
Klafyvel 2018-01-22 14:03:25 +01:00
parent ed160551e1
commit 16bd2a7d66
2 changed files with 3 additions and 23 deletions

View file

@ -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)),
],
),
]

View file

@ -3,6 +3,7 @@ from django.contrib.auth.models import Group
class Category(models.Model): class Category(models.Model):
"""Une catégorie de contenu."""
name = models.CharField( name = models.CharField(
max_length=255, max_length=255,
name="Nom de la catégorie" name="Nom de la catégorie"
@ -10,6 +11,7 @@ class Category(models.Model):
class School(models.Model): class School(models.Model):
"""Une école."""
name = models.CharField( name = models.CharField(
max_length=255 max_length=255
) )
@ -17,11 +19,9 @@ class School(models.Model):
def __str__(self): def __str__(self):
return self.name return self.name
class Video(models.Model):
name = models.CharField(max_length=255)
class Content(models.Model): class Content(models.Model):
"""Un contenu du site (vidéo)."""
name = models.CharField( name = models.CharField(
max_length=255, max_length=255,
name="Nom du contenu" name="Nom du contenu"