Added filter_horizontal on blogentry tags. Made minor corrections to BlogView's get_e...
[philo.git] / models / pages.py
index 7b4415d..e000b1b 100644 (file)
@@ -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