#16519: mimetype used with HttpResponse should be deprecated
----------------------------------+-------------------------------
 Reporter:  PaulM                 |          Owner:  nobody
     Type:  Cleanup/optimization  |         Status:  new
Milestone:                        |      Component:  HTTP handling
  Version:  1.3                   |       Severity:  Normal
 Keywords:                        |   Triage Stage:  Unreviewed
Has patch:  0                     |  Easy pickings:  0
    UI/UX:  0                     |
----------------------------------+-------------------------------
 Passing the `mimetype` argument when instantiating `HttpResponse` should
 raise a `DeprecationWarning`.

 The mimetype argument has been deprecated via comment in the code for 4
 years:
 
https://code.djangoproject.com/changeset/5844/django/trunk/django/http/__init__.py

 It's about time we actually raised a `DeprecationWarning` and remove the
 thing ASAP. If we swap the position of the mimetype and content_type
 arguments, code the relies on argument position will continue to function
 without raising the warning. The only code that will need to be changed is
 code that explicitly uses the mimetype kwarg (including a bunch of django
 tests).

 This situation is long-lived enough to bypass the
 PendingDeprecationWarning.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/16519>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to