Thus copying or subclassing from one of the default handlers doesn't
necessarily work as expected because `request` is always `None` - which is
perfectly valid according to the arguments for, say, `FileUploadHandler`.
It would be prudent to note that custom handlers, if they need arguments
(including request), should do so at the time of instantiation onto the
upload_handlers list
--
Ticket URL: <https://code.djangoproject.com/ticket/21588>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_better_patch: => 0
* needs_docs: => 0
* needs_tests: => 0
* stage: Unreviewed => Accepted
--
Ticket URL: <https://code.djangoproject.com/ticket/21588#comment:1>
* cc: berker.peksag@… (added)
* owner: nobody => berkerpeksag
* has_patch: 0 => 1
* status: new => assigned
Comment:
https://github.com/django/django/pull/6722
--
Ticket URL: <https://code.djangoproject.com/ticket/21588#comment:2>
* needs_better_patch: 0 => 1
Comment:
Idea for improvement on the PR.
--
Ticket URL: <https://code.djangoproject.com/ticket/21588#comment:3>
* needs_better_patch: 1 => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/21588#comment:4>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"8f50ff5b15a742f345dade0848a3fbbf2aff629d" 8f50ff5]:
{{{
#!CommitTicketReference repository=""
revision="8f50ff5b15a742f345dade0848a3fbbf2aff629d"
Fixed #21588 -- Corrected handler initialization in "modifying upload
handlers" example.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/21588#comment:4>
Comment (by Tim Graham <timograham@…>):
In [changeset:"324eaf42f249d07c5cd236798fda50e08aa5c501" 324eaf42]:
{{{
#!CommitTicketReference repository=""
revision="324eaf42f249d07c5cd236798fda50e08aa5c501"
[1.9.x] Fixed #21588 -- Corrected handler initialization in "modifying
upload handlers" example.
Backport of 8f50ff5b15a742f345dade0848a3fbbf2aff629d from master
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/21588#comment:5>
Comment (by Tim Graham <timograham@…>):
In [changeset:"3b75d1262e8488cbbccfbe0ec186a107ea90dc6e" 3b75d126]:
{{{
#!CommitTicketReference repository=""
revision="3b75d1262e8488cbbccfbe0ec186a107ea90dc6e"
[1.10.x] Fixed #21588 -- Corrected handler initialization in "modifying
upload handlers" example.
Backport of 8f50ff5b15a742f345dade0848a3fbbf2aff629d from master
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/21588#comment:6>
Comment (by Tim Graham <timograham@…>):
In [changeset:"ba29dfb1911cef5fcbc19f02006e3a73254bdfd6" ba29dfb1]:
{{{
#!CommitTicketReference repository=""
revision="ba29dfb1911cef5fcbc19f02006e3a73254bdfd6"
[1.8.x] Fixed #21588 -- Corrected handler initialization in "modifying
upload handlers" example.
Backport of 8f50ff5b15a742f345dade0848a3fbbf2aff629d from master
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/21588#comment:7>