Commit f5605b49 authored by Christophe Siraut's avatar Christophe Siraut

Fix file

parent fe478e31
......@@ -15,7 +15,7 @@ class VideoAdmin(admin.ModelAdmin):
list_display = ('title', 'page')
class FileAdmin(admin.ModelAdmin):
list_display = ('file', 'page')
list_display = ('title', 'page')
admin.site.register(Image, ImageAdmin)
admin.site.register(Agenda)
......
......@@ -80,7 +80,7 @@ class Reference(models.Model):
class File(models.Model):
page = models.ForeignKey(Page)
file = models.FileField(upload_to="files",blank=True,null=True)
text = RichTextField(max_length=200,blank=True,null=True)
title = models.CharField(max_length=80,blank=True,null=True)
def __unicode__(self):
return self.title
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment