• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

kobotoolbox / kpi / 26639973323
82%
master: 76%

Build:
Build:
LAST BUILD BRANCH: dev-1680-usernames
DEFAULT BRANCH: master
Ran 29 May 2026 01:31PM UTC
Jobs 10
Files 914
Run time 2min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

29 May 2026 01:26PM UTC coverage: 82.005% (-0.004%) from 82.009%
26639973323

push

github

web-flow
fix(admin): fix adding users in Django Admin DEV-2180 (#7096)

### đŸ“Ŗ Summary
Fixes a bug in Django admin that was preventing admins from adding
users.

### 💭 Notes
The Django 5 upgrade introduced a new concept of `usable_password`,
which is a setting that can allow/forbid users to authenticate with a
password (as opposed to SSO or LDAP or something). This field is
included by default in the UserAdmin, but not present on the model.
Instead, it is created by a mixin that is present in
`AdminUserCreationForm` but not regular `UserCreationForm.`
The solution is to update our `UserCreationForm` to use
`AdminCreationUserForm` as a base and just hide the `usable_password`
field by overriding the `fieldsets`.


### 👀 Preview steps

1. â„šī¸ have a superuser account
2. Go to Django admin -> Users
3. Add user
4. 🔴 [on release] 500
5. đŸŸĸ [on PR] you are able to successfully add a new user

9237 of 12469 branches covered (74.08%)

4 of 6 new or added lines in 1 file covered. (66.67%)

30492 of 37183 relevant lines covered (82.01%)

5.72 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
46.45
0.08% hub/admin/extend_user.py
Jobs
ID Job ID Ran Files Coverage
1 26639973323.1 29 May 2026 01:31PM UTC 910
51.93
2 26639973323.2 29 May 2026 01:32PM UTC 910
53.57
3 26639973323.3 29 May 2026 01:33PM UTC 912
53.16
4 26639973323.4 29 May 2026 01:33PM UTC 912
54.82
5 26639973323.5 29 May 2026 01:34PM UTC 910
52.18
6 26639973323.6 29 May 2026 01:34PM UTC 910
59.39
7 26639973323.7 29 May 2026 01:35PM UTC 912
66.06
8 26639973323.8 29 May 2026 01:35PM UTC 912
60.53
9 26639973323.9 29 May 2026 01:37PM UTC 912
53.53
10 26639973323.10 29 May 2026 01:37PM UTC 914
68.35
Source Files on build 26639973323
  • Tree
  • List 914
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • dec41609 on github
  • Prev Build on release/2.026.21 (#26371180764)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc