X-Git-Url: http://git.ithinksw.org/philo.git/blobdiff_plain/d9007d388ac908beabd142d7c4738d5eb7b9230d..f2172d8e9a1dc796966f1dc9be6fb869d2d83355:/models/pages.py?ds=sidebyside diff --git a/models/pages.py b/models/pages.py index 7b4415d..e000b1b 100644 --- a/models/pages.py +++ b/models/pages.py @@ -20,7 +20,7 @@ from philo.signals import page_about_to_render_to_string, page_finished_renderin class Template(TreeModel): name = models.CharField(max_length=255) documentation = models.TextField(null=True, blank=True) - mimetype = models.CharField(max_length=255, null=True, blank=True, help_text='Default: %s' % settings.DEFAULT_CONTENT_TYPE) + mimetype = models.CharField(max_length=255, default=getattr(settings, 'DEFAULT_CONTENT_TYPE', 'text/html')) code = models.TextField(verbose_name='django template code') @property