Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/schedule_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ jobs:
strategy:
fail-fast: false
matrix:
version: [16, 17]
version: [16, 17, 18]
server_side_bindings: [0, 1]
runs-on: ubuntu-latest
name: PostgreSQL Versions
Expand Down
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ answer newbie questions, and generally made Django that much better:
Carlton Gibson <carlton.gibson@noumenal.es>
cedric@terramater.net
Chad Whitman <chad.whitman@icloud.com>
Chaitanya Keyal <chaitanyakeyal@gmail.com>
ChaosKCW
Charlie Leifer <coleifer@gmail.com>
charly.wilhelm@gmail.com
Expand Down
7 changes: 4 additions & 3 deletions docs/topics/http/file-uploads.txt
Original file line number Diff line number Diff line change
Expand Up @@ -289,9 +289,10 @@ this handler to your upload handlers like this::

request.upload_handlers.insert(0, ProgressBarUploadHandler(request))

You'd probably want to use ``list.insert()`` in this case (instead of
``append()``) because a progress bar handler would need to run *before* any
other handlers. Remember, the upload handlers are processed in order.
Using ``list.insert()``, as shown above, ensures that the progress bar handler
is placed at the beginning of the list. Since upload handlers are executed in
order, this placement guarantees that the progress bar handler runs before the
default handlers, allowing it to track progress across the entire upload.

If you want to replace the upload handlers completely, you can assign a new
list::
Expand Down