Module
This commit is contained in:
parent
e4faab1cd5
commit
e490cde92d
2 changed files with 30 additions and 1 deletions
25
cms/migrations/0005_auto_20170503_2043.py
Normal file
25
cms/migrations/0005_auto_20170503_2043.py
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.10.4 on 2017-05-03 18:43
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('cms', '0004_auto_20170503_2036'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='module',
|
||||
name='contenu_published',
|
||||
field=models.BooleanField(default=False),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='module',
|
||||
name='evaluation_published',
|
||||
field=models.BooleanField(default=False),
|
||||
),
|
||||
]
|
||||
|
|
@ -125,7 +125,7 @@ class Module(models.Model):
|
|||
pratique_prof = models.IntegerField(default=0, verbose_name='Pratique professionnelle')
|
||||
didactique = models.TextField()
|
||||
evaluation = models.TextField()
|
||||
didactique_published = models.BooleanField(default=False)
|
||||
|
||||
sem1 = models.IntegerField(default=0)
|
||||
sem2 = models.IntegerField(default=0)
|
||||
sem3 = models.IntegerField(default=0)
|
||||
|
|
@ -135,6 +135,10 @@ class Module(models.Model):
|
|||
semestre = models.CharField(max_length=15, default='', blank=False)
|
||||
processus = models.ForeignKey(Processus, null=False, default=None)
|
||||
|
||||
didactique_published = models.BooleanField(default=False)
|
||||
evaluation_published = models.BooleanField(default=False)
|
||||
contenu_published = models.BooleanField(default=False)
|
||||
|
||||
def __str__(self):
|
||||
return '{0} - {1}'.format(self.code, self.nom)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue