Skip to content

Accessibility track

Accessibility is my team's project in this session. These are the tickets and pull requests I looked at. Pull request states were read on GitHub on 13 October 2026. I have not verified the ticket fields on Django's tracker.

Working on now

djangoproject.com issue #2904: on the Django Software Foundation's contact form, the E-mail field renders as a plain text input, so a phone shows the ordinary keyboard instead of the e-mail one, and neither Name nor E-mail tells the browser what it is for, so autofill is unreliable. That second point is WCAG 2.2 success criterion 1.3.5, Identify Input Purpose, level AA.

State on 15 October 2026: assigned to me. The plan: fix it, step by step, to learn: reproduce it on a local copy of the site, write a test that fails, make the change, check the page again with a screen reader and Accessibility Insights, then open a pull request. No pull request yet.

It is a small change to the website, not to Django itself, and it uses what tutorial parts 4 (forms) and 5 (tests) teach.

Update, 23 October 2026: fixed on a branch, pull request next

A false "fixed". On my phone the form already answered "Enter a valid email address.", so the bug looked solved. It was not. That message is Django's server-side check, which forms.EmailField runs after you submit. The issue is about the input before you submit: which keyboard the phone shows, and whether autofill knows what the field is for. To test it, tap the field and look at the keyboard. Don't submit.

Where the bug was. In contact/forms.py, class BaseContactForm, each field passed its own widget:

email = forms.EmailField(
    widget=forms.TextInput(attrs={"class": "required"}),  # line 28
    ...
name = forms.CharField(
    widget=forms.TextInput(attrs={"class": "required"}),  # line 32

An EmailField renders as <input type="email"> by default, but an explicit TextInput widget overrides that. The field is what validates; the widget is what gets drawn. The two sponsorship forms inherit these fields, so one change fixes all three forms.

The fix.

email = forms.EmailField(
    widget=forms.EmailInput(attrs={"class": "required", "autocomplete": "email"}),
    label=_("E-mail"),
)
name = forms.CharField(
    widget=forms.TextInput(attrs={"class": "required", "autocomplete": "name"}),
    label=_("Name"),
)

The test first. I added a test to ContactFormTests that loads the page and checks the rendered <input> of both fields with assertInHTML. Before the fix it failed and printed the real input, <input type="text" name="name" class="required" required id="id_name">, with no autocomplete. After the fix, all 15 tests in the contact app pass (docker compose run --rm web python -m manage test contact). The Python pre-commit hooks (black, flake8, ruff) pass too.

How: I cloned my fork (a shallow clone with --depth 50, because the full history is large), created the branch contact-email-input-autocomplete from upstream/main, and ran everything in Docker. I wrote the code with Claude's help, so I will tick that box in the pull request's AI Assistance Disclosure.

Pull request opened, 23 October 2026: #2924. Next: answer the review comments. Every step, with my answers: Guide: issue #2904, step by step.

Update, 24 October 2026: first review

Kanishk Pachauri (@Mr-Sunglasses) reviewed the pull request and asked for one change: take the AI agent out of the commit's co-authors. Django has no clear rule on this yet and it is a debated topic, so it is simpler to leave it out. The AI use is already disclosed in the pull request description, and I take full ownership of the change.

What I did: removed the Co-Authored-By: line from the commit message with git commit --amend, and force-pushed the branch. The code is identical, only the message changed. The commit is now 98d39b5. The pull request waits for a new review.

What I learned: git push --force-with-lease refused at first with "stale info". My clone had never fetched the branch from my fork, so Git had nothing to compare against and stopped. A git fetch origin first, or naming the commit the push may replace (--force-with-lease=<branch>:<old commit>), fixes it. Details in Step 6 of the guide.

Update, 25 October 2026: ticket #36510 handed over, I will review it

On 11 October I asked the author of pull request #20513 whether I could take over ticket #36510, the model name in the admin pagination heading. I got no answer, and I never claimed the ticket on Trac. On 25 October another Djangonaut from this session took ownership of it on Trac, after talking with their Navigator, and asked on the pull request whether either of us was still working on it.

I answered the same day: I am not working on it, so they can go ahead with a new pull request. I offered to review it, and to test the heading with a screen reader, once it is up.

The ticket needs a decision before it needs code. The heading is visually hidden and read only by screen readers. One view says "Pagination" is enough. The other says the model name helps someone who moves between many change list pages. A third option keeps "Pagination" as the heading and gives the model name through aria-describedby. The accessibility team has not decided yet.

What I learned: the owner field on Trac is what claims a ticket, not a comment on GitHub. A review is a contribution too, and it fits the time I have.

Next: review the new pull request when it is opened, and listen to the heading with Orca, before and after.

Update, 30 October 2026: a maintainer asks about the test

Kanishk approved pull request #2924 on 26 October ("LGTM"). GitHub shows it as "Approved these changes with read-only permissions": he does not have write access to djangoproject.com, so his approval is a review, but it does not count toward the merge. That needs a maintainer.

On 29 October a maintainer, Adam (@adamzap), asked:

I wonder if the test is needed since it's kind of just testing built-in Django features. The form changes are declarative.

He has a point. The change only swaps one widget and adds two attributes, and my test compares the whole rendered <input> tag. So it also re-checks things Django already tests, such as maxlength="320", and a Django upgrade that changes a default could break it even though the form is fine.

Why I wrote it anyway: the TextInput override sat unnoticed from 2016 to 2025 because nothing checked the input type, and the autocomplete attributes are what meet WCAG 2.2 SC 1.3.5. A later widget change could drop them without any test failing.

I asked before changing anything:

Would you prefer I: (i) remove it, or (ii) narrow it to check only the input type and the two autocomplete values?

Option (ii) would check the widget, not the HTML:

email = form.fields["email"].widget
self.assertEqual(email.input_type, "email")
self.assertEqual(email.attrs["autocomplete"], "email")
self.assertEqual(form.fields["name"].widget.attrs["autocomplete"], "name")

What I learned: who reviews matters as much as what they say. A contributor's approval tells the maintainer someone has checked the change; the maintainer decides. And a test for declarative code has to earn its place: it should fail only if the fix is undone, not if Django changes.

Next: one small commit once Adam answers. The pull request is still open.

Update, 4 November 2026: test removed

Adam had not answered after five days, so I chose option (i) and removed the test. His comment already pointed that way, and Kanishk's approval had covered the form change, not the test.

The pull request now changes only the two widgets in contact/forms.py. I amended the commit, kept the same message with no co-author line, and force-pushed (98d39b5 to b134f32). Then I told Adam on the pull request.

The force-push was rejected twice as "stale info". This clone only tracks main, so Git had no record of the branch on GitHub and could not run the --force-with-lease check. Fetching the branch did not help, because a single-branch fetch only fills FETCH_HEAD. Naming the commit I expected on GitHub worked:

git push --force-with-lease=contact-email-input-autocomplete:98d39b5... origin contact-email-input-autocomplete

What I learned: when a maintainer says a test may not be needed, the question is often the answer. And --force-with-lease is only as safe as what Git knows about the remote. If it knows nothing, give it the commit yourself.

Next: wait for the checks to run again and for a maintainer to merge. The pull request is still open.

Update, 19 November 2026: merged

Sarah Abderemane (@sabderemane) approved pull request #2924 ("Thank you! 🎸") and merged it on 19 November 2026, at 13:34 Paris time. It is now commit 95960825 on main: one file, contact/forms.py, two lines changed. GitHub closed issue #2904 the same minute, because the commit message starts with Fixed #2904.

Commit 95960825 on django/djangoproject.com: the commit message, and the two changed lines in contact/forms.py, an EmailInput with autocomplete "email" and autocomplete "name" on the Name field

email = forms.EmailField(
    widget=forms.EmailInput(attrs={"class": "required", "autocomplete": "email"}),
...
name = forms.CharField(
    widget=forms.TextInput(attrs={"class": "required", "autocomplete": "name"}),

I am the only author of the commit, with no co-author line; the AI use is disclosed in the pull request description. From the issue being assigned to me (15 October) to the merge: five weeks. The pull request was open for four of them.

Not live yet: on 19 November, after the merge, the live contact form still renders type="text" with no autocomplete. The change reaches the site with its next deployment.

Checked again on 22 November, 11:44 Paris time: still not live. The page came straight from the server, not from a cached copy, and the two inputs are unchanged. The merge itself worked: all the checks passed, and GitHub built and published the new Docker image the same day. But merging to main does not update the site. The Django ops team deploys separately, and the repository gives no schedule for it. My commit is still the latest on main, so the site may simply not have been deployed since. I will check again in a couple of days.

22 November, afternoon: three "failed" alerts, nothing broken. GitHub e-mailed me three failure alerts for #2924: Docker test build, prek checks and Tests, all from my first push on 23 October. They have no jobs and no logs, and the page says "This run likely failed because of a workflow file issue". There is no such issue. As a first-time contributor, my workflows waited for a maintainer to approve them, and that first batch was never approved. A month later, at 16:46 Paris time, GitHub closed the three runs as failed and alerted me. Every later run on the branch passed (24 October and 4 November), the pull request is merged, and the checks on #2977 passed today. Only the maintainers can delete runs in their repository, so the three stay in the list. To get fewer of these e-mails: Settings → Notifications → Actions on GitHub.

What I learned: the approval that merges is the one from someone with write access. Kanishk's review in October counted, but it could not merge. Waiting four weeks for that second look is normal, not a sign that something is wrong.

Next: once the site is deployed, check the form on my phone (the e-mail keyboard), in the developer tools (F12) and with Orca, and fill in the "After" column of What I heard. Then delete the branch contact-email-input-autocomplete on my fork.

Plan, 19 November 2026: follow #2904, do #2929

Two issues on djangoproject.com, at two different stages. Issue #2904 is done on my side and waits for a maintainer. Issue #2929 starts now, with three small pull requests in an order Kanishk proposed.

Issue #2904: follow it to the merge

Where it is on 19 November. Pull request #2924 is open. It changes only the two widgets in contact/forms.py. Kanishk approved it on 26 October, with read-only permissions. My last comment, after removing the test, has had no answer from a maintainer. The issue is still assigned to me, and my last comment there says it waits for a maintainer to merge.

Merged the same day, so the follow-up steps planned here were not needed. See Update, 19 November 2026: merged.

When it is merged.

  • Nothing to close by hand: the commit message starts with Fixed #2904, so GitHub closes the issue on merge. Checked: closed on 19 November, via commit 95960825.
  • Once the site is deployed, check the live contact form three ways: the phone shows the e-mail keyboard, the developer tools (F12) show type="email" and both autocomplete values, and Orca. Fill in the "After" column of What I heard from the live site, not my branch.
  • Delete the branch contact-email-input-autocomplete on my fork.

Issue #2929: three small pull requests

On 19 November Kanishk answered issue #2929: several small pull requests, not one big one. I said I would start this weekend. His order:

Step What When Gate
1 pyproject.toml: add license and [project.urls] Opened 22 Nov: #2977 None: "nothing to discuss there"
2 An outline of CONTRIBUTING.md, as a comment on the issue Posted 22 Nov: comment None
3 CONTRIBUTING.md, a separate file After we agree on the outline The outline
4 codemeta.json, generated from pyproject.toml After step 1 is merged Step 1 merged
– AUTHORS and CITATION.cff Parked Later, if at all

Step 1: the pyproject.toml pull request

The whole change, ten lines:

 name = "djangoproject-com"
 version = "0.1.0"
 description = "Source code to djangoproject.com"
+license = "BSD-3-Clause"
 requires-python = "==3.12.*"
@@
     "time-machine==3.3.0",
 ]

+[project.urls]
+Homepage = "https://www.djangoproject.com/"
+Repository = "https://github.com/django/djangoproject.com"
+Issues = "https://github.com/django/djangoproject.com/issues"
+
 [dependency-groups]

BSD-3-Clause matches the LICENSE file. The license field takes the SPDX name as a plain string, as in PEP 639. The site is not built as a package (package = false under [tool.uv]), so nothing else changes: on 19 November I tried the diff on a throwaway copy of main, and uv lock --check passed with the lock file unchanged.

cd ~/Github/djangoproject.com
git fetch upstream
git switch -c pyproject-license-urls upstream/main
# edit pyproject.toml as above
uv lock --check
git commit -am "Refs #2929 -- Added license and project URLs to pyproject.toml."
git push origin pyproject-license-urls

Refs, not Fixed: the issue covers more than this pull request, so it must stay open. In the pull request template, tick the AI Assistance Disclosure box, and no co-author line in the commit (see the 24 October update).

Update, 22 November 2026: pull request opened. Pull request #2977, "Refs #2929 -- Added license and project URLs to pyproject.toml.", is the diff above: one file, six lines. Before branching I synced my fork's main with upstream, since it was behind after the #2904 merge. uv lock --check passed and the lock file did not change. The pre-commit checks passed too, including pyproject-fmt. I am the only author of the commit, and I ticked the "AI tools were used" box in the description. On GitHub all four checks passed: tests, prek and the two image builds. I asked Kanishk and Sarah for a review. Next: answer the review, then step 2, the CONTRIBUTING.md outline.

Step 2: the CONTRIBUTING.md outline

Kanishk wants a separate file, because the README is already long, and an outline first. A comment on the issue, not a pull request. Draft:

Here's a rough outline. Each section stays short and links to the README rather than repeating it.

  1. What this repository is: the code of djangoproject.com and its docs and dashboard sites, not Django itself.
  2. Where to report what: website bugs here, in GitHub issues; bugs in Django on Trac; security issues as in .github/SECURITY.md.
  3. Picking an issue: ask on the issue before starting, and wait to be assigned.
  4. Setting up: links to the README sections "Install and run locally from a virtual environment" and "Running Locally with Docker".
  5. Making a change: branch from main, run the tests ("Running the tests"), and the git hooks ("git hooks").
  6. Pull requests: fill in the template, including the AI Assistance Disclosure. Anyone can review; a maintainer merges.
  7. Code of conduct: a link to Django's.

Two questions: should it ask for Django's commit message style (Fixed #NNNN -- ...)? And is there anything you'd add or drop?

The two questions are real: I don't know whether this repository wants Django's commit style, and I should not write a rule the team has not agreed.

Update, 22 November 2026: outline posted. I posted the outline on issue #2929 at 12:19 Paris time, with a link to pull request #2977 for part 1. The seven points are the ones above. I kept one question, "is there anything you'd add or drop?", and left out the one about commit style. Next: wait for Kanishk's answer, then write CONTRIBUTING.md to the shape we agree on (step 3).

Step 4: codemeta.json, once step 1 is merged

Every field below comes from pyproject.toml, LICENSE or the repository URL, so it stays short and easy to keep in sync. CodeMeta 4.0 adds Schema.org's archivedAt, which names Software Heritage, where the repository is already archived.

{
  "@context": "https://w3id.org/codemeta/4.0",
  "@type": "SoftwareSourceCode",
  "name": "djangoproject-com",
  "description": "Source code to djangoproject.com",
  "url": "https://www.djangoproject.com/",
  "codeRepository": "https://github.com/django/djangoproject.com",
  "issueTracker": "https://github.com/django/djangoproject.com/issues",
  "license": "https://spdx.org/licenses/BSD-3-Clause",
  "copyrightHolder": {
    "@type": "Organization",
    "name": "Django Software Foundation"
  },
  "programmingLanguage": "Python",
  "runtimePlatform": "Python 3.12",
  "archivedAt": "https://archive.softwareheritage.org/browse/origin/?origin_url=https://github.com/django/djangoproject.com"
}

Before the pull request: check it against the CodeMeta 4.0 context, and re-read the merged pyproject.toml in case the step 1 review changed something. Commit message: Refs #2929 -- Added codemeta.json. If CONTRIBUTING.md is merged by then, the last of the agreed pull requests can say Fixed #2929 instead.

What I am learning here: a good proposal shrinks in review. I asked for one pull request and four files; I am getting three pull requests, two files and a config change. Each one is easy to review and easy to say yes to.

Tickets I could take over

Ticket What Pull request State on 13 Oct
#36510 Redundant model name in the admin pagination heading #20513 Open, 7 lines. Taken by another Djangonaut on 25 Oct; I will review (see the update above)
#36509 Missing label on input fields in admin tables #19655 Open, last updated July 2026

Taking over means asking the author first.

Pull requests to review, not to take

Ticket What Pull request State on 13 Oct
#36630 Admin navigation sidebar as accessible list markup #21562 Open
#36582 required attribute on mandatory fields in admin inline forms #19970 Open

Without any Django code

The accessibility review of Django's ticket tracker, code.djangoproject.com issue #250, open on 13 October. One page of the audit is a contribution on its own.

Skills to build

(i) Web Content Accessibility Guidelines 2.2: enough to name the criterion a ticket is about.

(ii) A screen reader test environment on my own machine, following Setting up a screen reader testing environment. On Linux this means Orca.

Tutorial: listen to pull request #2924 with Orca, on Ubuntu with Firefox

Pull request #2924 changes two fields on the contact form: E-mail becomes an e-mail input, and both fields get autocomplete. This tutorial listens to the form twice, before and after the change, with the Orca screen reader. It takes about 15 minutes.

You need nothing new. Orca and Firefox both come with Ubuntu 24.04. Don't download Firefox from firefox.com: a second copy would sit next to Ubuntu's and would not update itself. Use Firefox and not Chrome: Chrome only talks to Orca if you start it in a special way, and even then not as well.

The keys

A shortcut written A+B means: hold down A, press B, let go of both.

Written Which key
Super The key with the Windows logo, bottom left, between Ctrl and Alt.
Alt Next to the space bar, on the left.
Tab On the left, above Caps Lock, often with two arrows.
Shift+Tab Hold Shift, press Tab: go back one step.
Ctrl Bottom left corner. On its own, it makes Orca stop talking.
Orca key Insert on a full keyboard, Caps Lock on a laptop layout.

So Super+Alt+S means: hold the Windows key and Alt together, press S, let go. It turns Orca on, and the same keys turn it off.

If the shortcut does nothing, use the menu: Settings → Accessibility → Seeing → Screen Reader, on or off.

Step 1: make Orca speak English (once)

Orca speaks the language of the computer. Mine is in French, and the contact form is in English, so I switched Orca's voice to English.

(i) Turn Orca on (Super+Alt+S).

(ii) Press Orca key+Space. The Orca Preferences window opens.

(iii) Go to the Voice tab and choose an English voice or language.

(iv) Click Apply, then OK. Orca keeps this setting. The rest of the computer stays in French.

Step 2: listen to the form before the change

The live site does not have the fix yet: the pull request was still open on 23 October 2026.

(i) With Orca on, open Firefox and go to https://www.djangoproject.com/contact/foundation/. Orca starts reading the page. Press Ctrl to make it stop.

(ii) Click once on some plain text above the form. Now your key presses go to the page, not to the address bar.

(iii) Press Tab once, and listen. Each press moves to the next link, button or field, and Orca says what it is. The menu links come first, so keep pressing Tab, one press at a time.

(iv) When you hear "Name", stop. Write down exactly what Orca says, for example "Name, entry, required".

(v) Press Tab once more, to E-mail. Write that down too.

(vi) Type a few letters in each field. Does Firefox offer to fill it in? Does Orca read the suggestion?

To hear a field again, press Orca key+Enter. If you went too far, Shift+Tab goes back one field.

Step 3: listen to the form after the change

The change is on my branch, contact-email-input-autocomplete, in my copy of the site.

(i) In a terminal, start the site:

cd ~/Github/djangoproject.com
git switch contact-email-input-autocomplete
docker compose up

(ii) In Firefox, go to http://www.djangoproject.localhost:8000/contact/foundation/.

(iii) Do Step 2 again, from (ii) to (vi), and write down what Orca says now.

(iv) When you are done, press Ctrl+C in the terminal to stop the site.

Step 4: turn Orca off

Press Super+Alt+S, or Settings → Accessibility → Seeing → Screen Reader, off.

What to expect

Before the change, Name and E-mail probably sound the same. After it, E-mail may sound a little different, or not at all. autocomplete is usually not read aloud: it helps autofill, not speech. So hearing no difference does not mean the fix does nothing. That is why I also check the inputs in the browser's developer tools (F12), and the keyboard on my phone.

If something goes wrong

Problem What to do
Orca talks too much Press Ctrl.
Orca is silent Check the sound is not muted, and the right output is chosen in Settings → Sound.
Orca speaks French Do Step 1.
Typing does not go into a field Click in the field with the mouse.
Arrow keys move a reading cursor, not the text cursor Press Orca key+A.
The local page does not open Check that docker compose up is still running in the terminal.

What I heard

Field Before (live site, 23 October 2026) After (my branch)
Name "Name : entry required." then "invalid entry." Not done
E-mail "E-mail : entry required." then "invalid entry." Not done

Before the change, the two fields sound the same: a label, "entry", "required". Nothing tells me the second one wants an e-mail address. Orca also says "invalid entry" for both, only because they are still empty and required. That is not what the pull request changes.

To get these words as text, not from memory, I started Orca from a terminal with a log file, and kept only the lines with SPEECH OUTPUT:

LANG=en_US.UTF-8 LANGUAGE=en_US:en orca --replace --debug-file ~/orca-before.txt
grep "SPEECH OUTPUT" ~/orca-before.txt

To stop Orca, press Ctrl+C in that terminal window, not in Firefox.

(iii) The Accessibility Insights browser plugin, to check a page before and after a patch. Installed on 15 October 2026, as a Microsoft Edge extension. I learned it from Introduction to Accessibility Insights for Web, the tool's own video.

Which of these would you give to someone who has finished the tutorial and nothing more?