Commits

Anonymous committed 115c87f

Set content_type

Comments (0)

Files changed (1)

gnocchi/cms/views.py

 class StyleSheetView(DetailView):
     model = StyleSheet
     slug_field = 'name'
-    mimetype = 'text/css'
+    content_type = 'text/css'
 
     def get(self, request, *args, **kwargs):
         # Check cache
     def get_template_names(self):
         return self.object
 
-    def render_to_response(self, *args, **kwargs):
-        kwargs['mimetype'] = 'text/css'
-        return super(StyleSheetView, self).render_to_response(*args, **kwargs)
-
 
 from django.db.models.signals import post_save
 from django.dispatch import receiver