Commit a104424
Add header_image field to PartnersPage model (#1661)
This change adds a header_image field to the PartnersPage model that can be
managed through the Wagtail admin interface. The field is exposed via the API
as header_image_url, following the same pattern as the TeamPage model.
Changes:
- Add header_image ForeignKey field to PartnersPage model
- Add get_header_image() method and header_image_url property
- Add header_image to content_panels for admin editing
- Add header_image_url to api_fields for API exposure
- Generate database migration
Jira: https://openstax.atlassian.net/browse/CORE-1194
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
Co-authored-by: Michael Volo <volo@rice.edu>1 parent cff8ac1 commit a104424
2 files changed
+41
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2394 | 2394 | | |
2395 | 2395 | | |
2396 | 2396 | | |
| 2397 | + | |
| 2398 | + | |
| 2399 | + | |
| 2400 | + | |
| 2401 | + | |
| 2402 | + | |
| 2403 | + | |
| 2404 | + | |
| 2405 | + | |
| 2406 | + | |
| 2407 | + | |
| 2408 | + | |
| 2409 | + | |
2397 | 2410 | | |
2398 | 2411 | | |
2399 | 2412 | | |
| |||
2442 | 2455 | | |
2443 | 2456 | | |
2444 | 2457 | | |
| 2458 | + | |
2445 | 2459 | | |
2446 | 2460 | | |
2447 | 2461 | | |
| |||
2454 | 2468 | | |
2455 | 2469 | | |
2456 | 2470 | | |
| 2471 | + | |
2457 | 2472 | | |
2458 | 2473 | | |
2459 | 2474 | | |
| |||
0 commit comments