Commit 7cb3d63
Closes #622 — the cross-repo Django 4.2 chain is now complete.
## What
Relax this package's Django pin from `>=5.0,<7.0` to `>=4.2,<7.0`,
bump the API + MCP dep constraints to their 4.2-aware floors,
add a 4.2 dimension to CI, and update the README's Requirements
section + classifier list to advertise 4.2.
| Repo | Before | After | Released |
|---|---|---|---|
| `django-admin-rest-api` | `django >=5.0` | `django >=4.2` | 1.1.0 (PyPI) |
| `django-admin-mcp-api` | `django >=5.0` | `django >=4.2` | 1.1.0 (PyPI) |
| `django-admin-react` | `django >=5.0` | `django >=4.2` | **1.5.0 (this PR)** |
Why the constraint tightens on `django-admin-mcp-api` even though
its public range stays the same: the 1.0.x line pins
``django>=5.0``, so a consumer on Django 4.2 would resolve to an
mcp version that refuses to install. Bumping the floor to
``>=1.1.0`` keeps the install promise honest.
## CI matrix
Added a `matrix.django: ["4.2", "5.2"]` dimension; runtime install
swaps Django via the venv's `pip install "django~=<matrix>.0"`.
Today both matrix cells run py3.12.
## README freshness
While here, two doc updates aligned to the post-#631 reality:
- `PRIMARY_COLOR` default is now `None` (the resolver reads
`AdminSite.site_primary_color` next, falling back to the
built-in `#2563eb`). The settings-block example reflects the
None default.
- New "Accent colour" subsection in Branding documents the full
resolution order + the `site_primary_color` AdminSite-attr
convention, with a worked `AcmeAdminSite` example.
The "Requirements" line now reads `Django: 4.2 LTS, 5.0, 5.1,
5.2 LTS, 6.0 (and any later 6.x)` — accurate for what the wheel
will actually install on.
## Verification
- `poetry run pytest -q` — **61 / 61 ✓** on Django 4.2.30
- `poetry run pytest -q` — **61 / 61 ✓** on Django 5.2.14 (no regression)
- `pnpm test` — **187 / 187 ✓**
- `pnpm -r typecheck` ✓
- `pnpm lint` ✓
- Cross-repo install resolved end-to-end: rest-api 1.1.0 + mcp-api
1.1.0 + django 4.2.30 + this package 1.5.0 in one venv.
## Minor bump rationale
`1.4.13` → `1.5.0`. New supported environment (Django 4.2 LTS)
per SemVer's "additive features that broaden compatibility"
guideline. Matches the symmetric 1.1.0 minor bumps on
`django-admin-rest-api` and `django-admin-mcp-api`.
Closes #622.
Co-authored-by: Martin Castro Laminrs <mcastro@laminr.ai>
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 91e8ed1 commit 7cb3d63
4 files changed
Lines changed: 76 additions & 26 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
55 | 67 | | |
56 | 68 | | |
57 | 69 | | |
58 | 70 | | |
59 | 71 | | |
60 | 72 | | |
61 | 73 | | |
62 | | - | |
| 74 | + | |
63 | 75 | | |
64 | 76 | | |
65 | 77 | | |
| |||
72 | 84 | | |
73 | 85 | | |
74 | 86 | | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
75 | 90 | | |
76 | 91 | | |
77 | 92 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
158 | | - | |
159 | | - | |
160 | | - | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
161 | 164 | | |
162 | 165 | | |
163 | 166 | | |
| |||
212 | 215 | | |
213 | 216 | | |
214 | 217 | | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
215 | 247 | | |
216 | 248 | | |
217 | 249 | | |
218 | | - | |
| 250 | + | |
219 | 251 | | |
220 | 252 | | |
221 | 253 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
42 | | - | |
43 | | - | |
44 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
45 | 48 | | |
46 | 49 | | |
47 | 50 | | |
48 | 51 | | |
49 | 52 | | |
50 | 53 | | |
51 | 54 | | |
52 | | - | |
| 55 | + | |
53 | 56 | | |
54 | 57 | | |
55 | 58 | | |
56 | 59 | | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
62 | 65 | | |
63 | 66 | | |
64 | 67 | | |
| |||
0 commit comments