This leads to slightly ungainly semantics like:
{{{#!python
response = HttpResponse(content_type=feed.mime_type)
}}}
Might be aesthetically nicer to make this more consistent by using
`content_type` across the board.
--
Ticket URL: <https://code.djangoproject.com/ticket/24728>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_better_patch: => 0
* component: Uncategorized => contrib.syndication
* needs_tests: => 0
* version: 1.8 => master
* needs_docs: => 0
* type: Uncategorized => Cleanup/optimization
* stage: Unreviewed => Accepted
Comment:
Yes, but of course a deprecation of the current names is required. See
[https://docs.djangoproject.com/en/dev/internals/contributing/writing-code
/submitting-patches/#deprecating-a-feature Deprecating a Feature] for a
checklist of things to do when writing the patch.
--
Ticket URL: <https://code.djangoproject.com/ticket/24728#comment:1>
* status: new => assigned
* owner: nobody => raphaelm
--
Ticket URL: <https://code.djangoproject.com/ticket/24728#comment:2>
Comment (by raphaelm):
I renamed the attributes and started the deprecation in this pull request:
https://github.com/django/django/pull/4760
--
Ticket URL: <https://code.djangoproject.com/ticket/24728#comment:3>
* has_patch: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/24728#comment:4>
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/24728#comment:5>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"5c125f63f77e169a459c11bab0f639c83fabc6e2" 5c125f6]:
{{{
#!CommitTicketReference repository=""
revision="5c125f63f77e169a459c11bab0f639c83fabc6e2"
Fixed #24728 -- Renamed mime_type to content_type for syndication feeds
Renamed the mime_type properties of RssFeed and Atom1Feed to
content_type and start deprecation for the old names.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/24728#comment:6>
Comment (by Tim Graham <timograham@…>):
In [changeset:"c6de8cca208fb471723619970c09ecb3bd335362" c6de8cc]:
{{{
#!CommitTicketReference repository=""
revision="c6de8cca208fb471723619970c09ecb3bd335362"
Refs #24728 - Removed Atom1Feed/RssFeed mime_type attribute.
Per deprecation timeline.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/24728#comment:7>