Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Django's HttpResponse object has deprecated the mimetype kwarg in 1.7 #82

Merged
merged 1 commit into from Jul 24, 2014

Conversation

squidsoup
Copy link
Contributor

The mimetype kwarg has been deprecated in favour of content_type which has been present in Django since 1.4. (see https://docs.djangoproject.com/en/1.7/ref/request-response/#id3)

https://docs.djangoproject.com/en/1.4/ref/request-response/
content_type is an alias for mimetype. Historically, this parameter was only called mimetype, but since this is actually the value included in the HTTP Content-Type header, it can also include the character set encoding, which makes it more than just a MIME type specification. If mimetype is specified (not None), that value is used. Otherwise, content_type is used. If neither is given, the DEFAULT_CONTENT_TYPE setting is used.

This change will break backwards compatibility with Django 1.3 and earlier.

@brianmay
Copy link

The same patch in #80.

What is needed to get this patch applied? Django 1.7 is going to be release very soon now....

Thanks

crucialfelix added a commit that referenced this pull request Jul 24, 2014
Django's HttpResponse object has deprecated the mimetype kwarg in 1.7
@crucialfelix crucialfelix merged commit f89f97a into crucialfelix:develop Jul 24, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants