https://docs.djangoproject.com/en/dev/topics/http/file-uploads/#modifying-
upload-handlers-on-the-fly
--
Ticket URL: <https://code.djangoproject.com/ticket/33172>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
Ticket URL: <https://code.djangoproject.com/ticket/33172#comment:1>
* stage: Unreviewed => Accepted
Comment:
Accepting on the basis that using CBVs is probably the most prevalent form
these days, and I genuinely wouldn't know which bits of the CBV to
decorate with what. I'd ''guess'' `method_decorator` would be necessary
too.
Some documentation indicating the correct path would not be amiss -- most
of that section hasn't been touched since 2010 or earlier, predating CBVs.
--
Ticket URL: <https://code.djangoproject.com/ticket/33172#comment:2>
* owner: nobody => fraziern
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/33172#comment:3>
* owner: Nick Frazier => SREEHARI K.V
* has_patch: 0 => 1
Comment:
[https://github.com/django/django/pull/14977 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/33172#comment:4>
* needs_better_patch: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/33172#comment:5>
* needs_better_patch: 1 => 0
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/33172#comment:6>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"e2f778d57947d168a875159e6df075255eea4bbc" e2f778d5]:
{{{
#!CommitTicketReference repository=""
revision="e2f778d57947d168a875159e6df075255eea4bbc"
Fixed #33172 -- Added example of modifying upload handlers on the fly for
CBVs.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/33172#comment:7>
Comment (by Mariusz Felisiak <felisiak.mariusz@…>):
In [changeset:"c067a2b68fe2701608b34ac4a538e1f9dba0e9f2" c067a2b]:
{{{
#!CommitTicketReference repository=""
revision="c067a2b68fe2701608b34ac4a538e1f9dba0e9f2"
[4.0.x] Fixed #33172 -- Added example of modifying upload handlers on the
fly for CBVs.
Backport of e2f778d57947d168a875159e6df075255eea4bbc from main
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/33172#comment:8>