david / django-modelviews

Backup of an old repository with useful ideas. Initial goal: integrating REST to django admin (class-based views).

Clone this repository (size: 85.8 KB): HTTPS / SSH
$ hg clone http://code.welldev.org/django-modelviews
commit 34: 15884c9d34b7
parent 33: ac22b9f76f20
branch: default
Changed yaml mimetype to 'text/yaml', which appears to be standard.
Will Larson
2 years ago

Changed (Δ91 bytes):

raw changeset »

generic/rest_views.py (1 lines added, 3 lines removed)

Up to file-list generic/rest_views.py:

@@ -167,7 +167,6 @@ class JsonResponder(SerializingResponder
167
167
168
168
class XmlResponder(SerializingResponder):
169
169
    serializer = 'xml'
170
    # fix this to be a more appropriate xml mimetype
171
170
    mimetype = 'application/xml'
172
171
173
172
class YamlResponder(SerializingResponder):
@@ -180,8 +179,7 @@ class YamlResponder(SerializingResponder
180
179
    If the above import fails, so will the YamlResponder.
181
180
    """
182
181
    serializer = 'yaml'
183
    # what is YAML's mimetype?
184
    mimetype = 'application/yaml'
182
    mimetype = 'text/yaml'
185
183
186
184
187
185