From e4faab1cd5827dfc163095d1f302ef4d1d5aa302 Mon Sep 17 00:00:00 2001 From: alazo Date: Wed, 3 May 2017 20:37:06 +0200 Subject: [PATCH] Module_didactic_pub --- cms/migrations/0004_auto_20170503_2036.py | 24 +++++++++++++++++++++++ cms/models.py | 1 + templates/cms/document_list.html | 12 ------------ 3 files changed, 25 insertions(+), 12 deletions(-) create mode 100644 cms/migrations/0004_auto_20170503_2036.py diff --git a/cms/migrations/0004_auto_20170503_2036.py b/cms/migrations/0004_auto_20170503_2036.py new file mode 100644 index 0000000..fb7f616 --- /dev/null +++ b/cms/migrations/0004_auto_20170503_2036.py @@ -0,0 +1,24 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.10.4 on 2017-05-03 18:36 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('cms', '0003_auto_20170419_1409'), + ] + + operations = [ + migrations.AlterModelOptions( + name='uploaddoc', + options={'verbose_name': 'UploadDoc'}, + ), + migrations.AddField( + model_name='module', + name='didactique_published', + field=models.BooleanField(default=False), + ), + ] diff --git a/cms/models.py b/cms/models.py index 8e27399..df5e2b5 100644 --- a/cms/models.py +++ b/cms/models.py @@ -125,6 +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) diff --git a/templates/cms/document_list.html b/templates/cms/document_list.html index c6e1b93..caedd5b 100644 --- a/templates/cms/document_list.html +++ b/templates/cms/document_list.html @@ -1,9 +1,5 @@ {% extends "./base_site.html" %} {% load i18n static %} - - - - {% block coltype %}colMS{% endblock %} {% block bodyclass %}{{ block.super }}{% endblock %} @@ -20,14 +16,6 @@ {% for fic in upload %}
  • {{ fic.titre }}
  • {% endfor %} - - - - - - {% endblock %} - -