Intranet app

This commit is contained in:
alazo 2018-07-29 11:38:02 +02:00
parent cf3cf1748b
commit faef1e2caa
12 changed files with 125 additions and 27 deletions

View file

@ -6,7 +6,6 @@ Created on 17 nov. 2012
from django.db import models
from django.utils.html import format_html
from tinymce import models as tinymce_models
@ -178,17 +177,3 @@ class UploadDoc(models.Model):
def __str__(self):
return self.titre
class DocumentProf(models.Model):
doc = models.FileField(upload_to='docprof')
module = models.ForeignKey(Module, blank=False, on_delete=models.PROTECT)
title = models.CharField('titre', max_length=100, blank=False)
published = models.BooleanField(default=False)
class Meta:
verbose_name = 'DocProf'
def __str__(self):
return "{0} : {1}".format(self.module.code, self.title)