Commit 9af67f0
build: upgrade to Django 5.2 and django-cms 4.x
This commit upgrades the project from Django 4.2.x to Django 5.2 and
from django-cms 3.11.x to django-cms 4.x with djangocms-versioning.
Key changes:
**Django 5.2 compatibility:**
- Logout now requires POST instead of GET
- User.objects.make_random_password() removed - use secrets module
- Form field choices return tuples instead of lists
**CMS 4.x with djangocms-versioning:**
- Page.is_published() removed - use Version model to check state
- page.publish() removed - use versioning API via _publish_page() helper
- api.create_page() requires created_by parameter for version creation
- Placeholders are on PageContent, not Page
- Use PageContent.admin_manager to access draft content
**Test infrastructure:**
- Added cms_tools helpers: _cleanup_cms_test_user(), user_queryset()
- Updated OIDC tests to exclude CMS system user from counts
- Fixed menu tests for CMS 4.x versioning behavior
- Added data migration for ExtendedCMSLink link field
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 3fa76e3 commit 9af67f0
File tree
56 files changed
+1101
-528
lines changed- requirements
- src
- notifications
- open_inwoner
- accounts
- management/commands
- tests
- views
- cms
- cases/tests
- extensions
- plugins
- cms_plugins
- migrations
- tests
- tests
- utils
- components
- templatetags
- tests
- configurations
- tests
- bootstrap
- conf
- core
- tests
- haalcentraal
- kvk
- laposta
- openzaak
- tests
- plans
- qmatic
- tests
- search
- tests
- utils
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
56 files changed
+1101
-528
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
| 20 | + | |
20 | 21 | | |
| 22 | + | |
| 23 | + | |
21 | 24 | | |
22 | 25 | | |
23 | 26 | | |
| |||
55 | 58 | | |
56 | 59 | | |
57 | 60 | | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
63 | 68 | | |
64 | 69 | | |
65 | 70 | | |
| |||
99 | 104 | | |
100 | 105 | | |
101 | 106 | | |
102 | | - | |
| 107 | + | |
103 | 108 | | |
104 | 109 | | |
105 | 110 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | | - | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
| 17 | + | |
16 | 18 | | |
17 | 19 | | |
18 | 20 | | |
| |||
97 | 99 | | |
98 | 100 | | |
99 | 101 | | |
100 | | - | |
| 102 | + | |
101 | 103 | | |
102 | 104 | | |
103 | 105 | | |
| |||
118 | 120 | | |
119 | 121 | | |
120 | 122 | | |
| 123 | + | |
121 | 124 | | |
122 | 125 | | |
123 | 126 | | |
| |||
170 | 173 | | |
171 | 174 | | |
172 | 175 | | |
173 | | - | |
| 176 | + | |
174 | 177 | | |
175 | | - | |
| 178 | + | |
176 | 179 | | |
177 | 180 | | |
178 | 181 | | |
| |||
184 | 187 | | |
185 | 188 | | |
186 | 189 | | |
187 | | - | |
| 190 | + | |
188 | 191 | | |
189 | 192 | | |
190 | 193 | | |
191 | 194 | | |
192 | 195 | | |
193 | 196 | | |
194 | 197 | | |
| 198 | + | |
195 | 199 | | |
196 | 200 | | |
197 | 201 | | |
198 | 202 | | |
199 | 203 | | |
200 | 204 | | |
201 | | - | |
| 205 | + | |
202 | 206 | | |
203 | 207 | | |
204 | 208 | | |
205 | 209 | | |
206 | 210 | | |
207 | 211 | | |
208 | 212 | | |
209 | | - | |
| 213 | + | |
210 | 214 | | |
211 | 215 | | |
212 | 216 | | |
213 | | - | |
214 | 217 | | |
215 | 218 | | |
216 | 219 | | |
217 | 220 | | |
218 | | - | |
| 221 | + | |
219 | 222 | | |
| 223 | + | |
220 | 224 | | |
221 | 225 | | |
| 226 | + | |
| 227 | + | |
222 | 228 | | |
223 | 229 | | |
224 | 230 | | |
| |||
228 | 234 | | |
229 | 235 | | |
230 | 236 | | |
231 | | - | |
232 | | - | |
233 | | - | |
| 237 | + | |
234 | 238 | | |
235 | 239 | | |
236 | 240 | | |
| |||
251 | 255 | | |
252 | 256 | | |
253 | 257 | | |
254 | | - | |
255 | | - | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
256 | 262 | | |
257 | 263 | | |
258 | 264 | | |
| |||
317 | 323 | | |
318 | 324 | | |
319 | 325 | | |
320 | | - | |
| 326 | + | |
321 | 327 | | |
322 | 328 | | |
323 | 329 | | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
324 | 334 | | |
325 | 335 | | |
326 | 336 | | |
| |||
337 | 347 | | |
338 | 348 | | |
339 | 349 | | |
340 | | - | |
| 350 | + | |
341 | 351 | | |
| 352 | + | |
342 | 353 | | |
343 | 354 | | |
344 | 355 | | |
| |||
366 | 377 | | |
367 | 378 | | |
368 | 379 | | |
369 | | - | |
370 | | - | |
371 | 380 | | |
372 | 381 | | |
373 | 382 | | |
| |||
407 | 416 | | |
408 | 417 | | |
409 | 418 | | |
| 419 | + | |
410 | 420 | | |
411 | 421 | | |
412 | 422 | | |
| |||
446 | 456 | | |
447 | 457 | | |
448 | 458 | | |
449 | | - | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
450 | 462 | | |
451 | 463 | | |
452 | 464 | | |
| |||
511 | 523 | | |
512 | 524 | | |
513 | 525 | | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
514 | 529 | | |
515 | 530 | | |
516 | 531 | | |
| |||
520 | 535 | | |
521 | 536 | | |
522 | 537 | | |
| 538 | + | |
523 | 539 | | |
524 | 540 | | |
525 | 541 | | |
| |||
555 | 571 | | |
556 | 572 | | |
557 | 573 | | |
558 | | - | |
559 | 574 | | |
560 | 575 | | |
561 | 576 | | |
| |||
577 | 592 | | |
578 | 593 | | |
579 | 594 | | |
580 | | - | |
| 595 | + | |
581 | 596 | | |
582 | 597 | | |
583 | 598 | | |
| |||
594 | 609 | | |
595 | 610 | | |
596 | 611 | | |
597 | | - | |
598 | 612 | | |
599 | 613 | | |
600 | 614 | | |
| |||
613 | 627 | | |
614 | 628 | | |
615 | 629 | | |
616 | | - | |
617 | 630 | | |
618 | 631 | | |
619 | 632 | | |
| |||
651 | 664 | | |
652 | 665 | | |
653 | 666 | | |
654 | | - | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
655 | 670 | | |
656 | 671 | | |
657 | 672 | | |
| |||
725 | 740 | | |
726 | 741 | | |
727 | 742 | | |
728 | | - | |
| 743 | + | |
729 | 744 | | |
730 | 745 | | |
731 | 746 | | |
| |||
0 commit comments