Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integration – Latest changes #376

Merged
merged 137 commits into from
Mar 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
137 commits
Select commit Hold shift + click to select a range
28d04ae
Footer restyle
albinazs Dec 10, 2024
5f7ad12
Update yamls for pattern library
albinazs Dec 11, 2024
cfadd68
Fine-tune newsletter link styles in wrapped state
albinazs Dec 11, 2024
34d6916
Update typography
albinazs Dec 13, 2024
42700f4
Update default button font size
albinazs Dec 13, 2024
dcf6be6
Update newsletter link styles
albinazs Dec 13, 2024
82b9634
Update carbon impact container width
albinazs Dec 13, 2024
6f823f2
Clean code
albinazs Dec 13, 2024
6bd8f6d
Merge pull request #319 from torchbox/feature/twe-23-typography
albinazs Dec 16, 2024
a38449e
Resolve merge conflicts
albinazs Dec 16, 2024
9bec2b6
Add division signpost block (BE)
SharmaineLim Dec 6, 2024
8acc086
Use firstof instead of a StructValue
SharmaineLim Dec 6, 2024
f101cb1
Draft division signpost blocks
albinazs Dec 16, 2024
8f1434a
TWE-6 - BE - Update theme colours (#315)
SharmaineLim Dec 17, 2024
6e24fe3
Division signposts FE
albinazs Dec 17, 2024
5dc3f65
High-contrast accessibility fixes
albinazs Dec 17, 2024
78321b9
Linting
albinazs Dec 17, 2024
4400045
TWE-1 - BE - New homepage hero fields (#313)
SharmaineLim Dec 18, 2024
8bb2598
TWE-2 - BE - Add division signpost block (#314)
SharmaineLim Dec 19, 2024
e4abc32
Move PartersBlock to core.blocks
SharmaineLim Dec 18, 2024
84a7048
Add divisions app
SharmaineLim Dec 19, 2024
8d19fe7
Merge the updated BE
albinazs Dec 19, 2024
7144e99
Prepare division page blocks
SharmaineLim Dec 19, 2024
643ff22
Add DivisionPage
SharmaineLim Dec 19, 2024
a38b9d1
Make schema migration
SharmaineLim Dec 19, 2024
aa3dfd6
Add faker & factory-boy as explicit dependencies since we use them
SharmaineLim Dec 19, 2024
6663d23
Create DivisionPage factory
SharmaineLim Dec 19, 2024
bc24e99
Do something different if there's only 1 dynamic text
SharmaineLim Dec 19, 2024
8afbdaf
Update typescale for a11y and clean code
albinazs Dec 19, 2024
c084bc8
Clean template: richtext markup and empty classes
albinazs Dec 19, 2024
fb5fb07
Add block to the styleguide
albinazs Dec 19, 2024
a4fac46
Merge pull request #323 from torchbox/feature/twe-2-division-signpost…
albinazs Dec 19, 2024
685f6cc
Add 'caption' to four-photo collage
SharmaineLim Dec 20, 2024
3a4164f
Homepage redesign
albinazs Dec 24, 2024
87cd209
Hide new icons from screen reader
albinazs Dec 24, 2024
26ca284
Fix SVG console error
albinazs Jan 2, 2025
f2198ff
Merge pull request #325 from torchbox/feature/twe-3-homepage-fe
albinazs Jan 2, 2025
0347da3
Update main heading styles
albinazs Jan 2, 2025
8080cbb
Update fonts docs
albinazs Jan 2, 2025
7f5d684
Merge branch 'integration/2024-evolution' into feature/twe-7-division…
SharmaineLim Jan 6, 2025
23bbf3b
Update color themes dark mode
albinazs Jan 6, 2025
d648d2f
Linting
albinazs Jan 6, 2025
b3b5c1e
Clean code
albinazs Jan 6, 2025
4661977
Merge pull request #326 from torchbox/feature/twe-25-page-title
albinazs Jan 6, 2025
fd5af4f
Fix linting issue from previous merge
albinazs Jan 6, 2025
8f49103
Merge pull request #330 from torchbox/fix/lint-issue
albinazs Jan 6, 2025
6697022
Remove newline at end of file
SharmaineLim Jan 7, 2025
b1ec648
Update typography, newsletter link, and logos
shyusu4 Jan 7, 2025
8f85280
Finetune newsletter link and heading-text typography styles
shyusu4 Jan 7, 2025
a7eab7f
Remove increased underline-offset in newsletter link
shyusu4 Jan 8, 2025
4657acd
Merge pull request #329 from torchbox/feature/twe-6-theme-colors-fe
albinazs Jan 8, 2025
2f380c1
Draft intro with images block
albinazs Jan 8, 2025
2d51322
Merge pull request #332 from torchbox/feature/twe-33-design-feedback
shyusu4 Jan 9, 2025
0fc85ec
Division page FE
albinazs Jan 9, 2025
7ba6958
Fine-tune layout
albinazs Jan 9, 2025
c9b37b8
Add intro to BlogChooserBlock
SharmaineLim Jan 10, 2025
59b3b10
Add intro to WorkChooserBlock
SharmaineLim Jan 10, 2025
1154aae
Comment out intro from pattern library for now
SharmaineLim Jan 10, 2025
0072a1b
Fix aspect ratio for mobile, alt text, and rich-text styles
albinazs Jan 13, 2025
47193a8
Draft swiper component
albinazs Jan 14, 2025
80d3ad3
TWE-7 - BE - Division page (#324)
SharmaineLim Jan 15, 2025
b8eb618
TWE-11 - BE - Service area page (#335)
SharmaineLim Jan 15, 2025
5159e88
Carousel controls and height calculation
albinazs Jan 15, 2025
3ff0fdb
Fine-tune the carousel, a11y considerations
albinazs Jan 15, 2025
69db2c1
Turn on autoplay on all screens
albinazs Jan 15, 2025
7bc950c
Update pattern library and styleguide
albinazs Jan 15, 2025
71adb0e
Fix Firefox font size issue
albinazs Jan 15, 2025
63052d6
Merge branch 'main' into integration/2024-evolution
SharmaineLim Jan 16, 2025
b477633
Update faker to match latest from main
SharmaineLim Jan 16, 2025
5d7ccb5
Update poetry.lock
SharmaineLim Jan 16, 2025
ec7ef96
Merge branch 'integration/2024-evolution' into feature/twe-34-divisio…
SharmaineLim Jan 16, 2025
609cb81
Add intro and buttons to the chooser blocks
albinazs Jan 16, 2025
49c5832
Fine-tune spacing
albinazs Jan 16, 2025
da29925
Alternate between play and pause buttons
albinazs Jan 17, 2025
cecb616
Linting
albinazs Jan 17, 2025
97ef147
More linting
albinazs Jan 17, 2025
31ee0ae
TWE-9 - BE - Featured services block (Division page) (#327)
SharmaineLim Jan 20, 2025
41ee55b
TWE-10 - BE - Statistics group block (Division page) (#328)
SharmaineLim Jan 20, 2025
4c45d1f
Merge branch 'main' into integration/2024-evolution
SharmaineLim Jan 20, 2025
f92a9e8
Fix linting
SharmaineLim Jan 20, 2025
19ecc67
Primary nav and header FE
albinazs Jan 20, 2025
9880c5d
Accessibility considerations and fine-tunes
albinazs Jan 21, 2025
4de43d9
Merge pull request #342 from torchbox/feature/twe-34-division-page-hero
albinazs Jan 21, 2025
315ee0b
Merge pull request #346 from torchbox/feature/twe-17-primary-nav-and-…
albinazs Jan 21, 2025
e05552b
Increase cards breakpoint size
shyusu4 Jan 21, 2025
6aafa54
Merge pull request #348 from torchbox/fix/featured-services
shyusu4 Jan 21, 2025
0bdcecc
Update focus styles
shyusu4 Jan 27, 2025
e0350b3
Linting
shyusu4 Jan 27, 2025
0977858
Design feedback fine-tunes
albinazs Jan 27, 2025
d06cba3
Merge pull request #350 from torchbox/feature/twe-27-focus-styles
shyusu4 Jan 27, 2025
59439eb
Merge pull request #352 from torchbox/feature/design-feedback-colors-…
albinazs Jan 28, 2025
bdd70e6
Restyle tabbed paragraph block
albinazs Jan 28, 2025
bfaa736
Service area page styles
albinazs Jan 29, 2025
fb274dd
Tweak subtitle color and tailwind config
albinazs Jan 29, 2025
2bcd8d5
Restyle motif headings
albinazs Jan 29, 2025
1ab0914
TWE-19 - BE - Link columns block (Service area page) (#337)
SharmaineLim Jan 31, 2025
2db3be1
Add new theme colors for the motifs in light mode
albinazs Jan 31, 2025
e5e41f8
Fix the template - empty div case
albinazs Jan 31, 2025
0954671
TWE-13 - BE - Key points with icons (Service area page) (#336)
SharmaineLim Feb 3, 2025
f8a6e88
TWE-16 - BE - Optional intro & button fields for blog/work chooser bl…
SharmaineLim Feb 3, 2025
14a0be4
Merge branch 'integration/2024-evolution' into feature/twe-16-optiona…
SharmaineLim Feb 3, 2025
5a2f470
TWE-14 - BE - Contact CTA block description field (#338)
SharmaineLim Feb 3, 2025
4297f3d
Chore: Update upload-pages-artifact to v3
SharmaineLim Feb 3, 2025
48e5320
Add a subheading field to the featured services block
SharmaineLim Feb 3, 2025
187bff5
TWE-9 - Add subheading to Featured Services Block (#358)
SharmaineLim Feb 5, 2025
ee5b592
TWE-21 - BE - Secondary Navigation (#357)
SharmaineLim Feb 10, 2025
97fc455
Merge branch 'integration/2024-evolution' into content-prep
SharmaineLim Feb 10, 2025
cb42c86
TWE-24 Add CTA fields (text+link) to footer (#362)
bmispelon Feb 11, 2025
9e2859d
TWE-38 tweak help text for HomePage.introduction (#363)
bmispelon Feb 11, 2025
20e383e
Merge pull request #343 from torchbox/feature/twe-16-optional-intro-a…
albinazs Feb 12, 2025
0107666
Merge pull request #353 from torchbox/feature/twe-14-tabbed-paragraph…
albinazs Feb 12, 2025
dc33abc
Merge pull request #354 from torchbox/feature/twe-12-service-area-fe
albinazs Feb 12, 2025
e753e69
Merge pull request #355 from torchbox/feature/twe-28-motifs
albinazs Feb 12, 2025
ff886c8
Fixing template errors (#365)
shyusu4 Feb 12, 2025
d01cc52
TWE-21 | FE | Secondary navigation (#360)
shyusu4 Feb 12, 2025
b96867f
TWE-22 | FE | Light mode (#356)
shyusu4 Feb 12, 2025
fa96339
FE design feedback - motifs, block styles (#366)
shyusu4 Feb 17, 2025
19762f2
Merge branch 'integration/2024-evolution' into content-prep
SharmaineLim Feb 18, 2025
ebe5ee0
Tweak heading sizes and block grid layouts (#367)
shyusu4 Feb 20, 2025
2b1b79b
TWE-39 Add a new block for textual statistic groups (#364)
bmispelon Feb 21, 2025
bd3a646
Merge commit 'ebe5ee04' into content-prep
SharmaineLim Feb 25, 2025
0895531
Allow moving a HistoricalWorkPage but disable creation (#370)
SharmaineLim Feb 27, 2025
65a0e8a
TWE-26 Make breadcrumb navigation division-aware
bmispelon Feb 27, 2025
74f9af1
Merge branch 'integration/2024-evolution' into content-prep
SharmaineLim Mar 4, 2025
9204c5b
only load swiper css and js on the division page
chris-lawton Mar 6, 2025
5a68459
load the division page js/css in the pattern library
chris-lawton Mar 6, 2025
0e7bb9d
lint djhtml
chris-lawton Mar 6, 2025
0de27f5
Merge pull request #373 from torchbox/split-division-page-css-js
chris-lawton Mar 6, 2025
24ba460
TWE-43 - BE/FE - Update division logo and submenu heading (#368)
SharmaineLim Mar 6, 2025
5d799ba
TWE-31 | FE | Update social media default images (#369)
shyusu4 Mar 6, 2025
2d7b425
TWE-44 | Front end fine-tuning (#372)
shyusu4 Mar 7, 2025
bbf5a2f
Increase division logo sizes
shyusu4 Mar 10, 2025
11e6623
Merge branch 'integration/2024-evolution' into content-prep
SharmaineLim Mar 11, 2025
b46d92a
Merge pull request #374 from torchbox/fix/header-tweaks
shyusu4 Mar 11, 2025
78f15eb
Update Torchbox logo SVG
shyusu4 Mar 11, 2025
9f42d19
Merge pull request #375 from torchbox/update-tbx-logo
shyusu4 Mar 11, 2025
5793a10
Merge branch 'integration/2024-evolution' into content-prep
SharmaineLim Mar 12, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
- name: Build site (_site directory name is used for Jekyll compatiblity)
run: mkdocs build --config-file ./mkdocs.yml --site-dir ./_site
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
uses: actions/upload-pages-artifact@v3

deploy:
needs: build
Expand Down
24 changes: 24 additions & 0 deletions docs/custom-features/divisions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Divisions

The site's target audience can be grouped into divisions; e.g. the charity division, the public sector division, and the Wagtail division. All content going forward can be associated to one of these divisions.

The idea is that if you're a charity organisation, you can find content that's specific and relevant for you because the relevant content will all be in one place.

This feature allows content to be associated to a specific `DivisionPage`, which allows us to display the same theme, logo and navigation for any content related to a division. (Because of this, a page should only have one associated division.)

## Options

The available options are dependent on the `DivisionPage`s that have been created.

## Division configuration

The `tbx.core.utils.models.DivisionMixin` provides a mechanism for associating a specific division with a page. It offers the following functionality:

- `division` field: Adds a ForeignKey field to associate a specific division with a page.
- `final_division`: A cached property that determines the appropriate division to associate to a page. It first checks if the page has a `division` specified. If not, it traverses the page's ancestors to find the first page that either has a `division` specified or is a `DivisionPage`, defaulting to `None`.

---

???+ note

Please ensure that the Editors' guide is updated accordingly whenever any changes are made to this feature. A private link, for Torchbox employees only, can be found at https://intranet.torchbox.com/torchbox-com-project-docs.
6 changes: 3 additions & 3 deletions docs/custom-features/theme.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ The Theme feature enables the customization of page styles through the applicati

The available color themes are defined using the `tbx.core.utils.models.ColourTheme` enumeration. Each theme option consists of a CSS class name and a human-readable label. The following themes are available:

- `ColourTheme.NONE`: No specific theme applied. When the theme is set to "None", this means we don't add a `theme-****` class to the page, and the default theme (_Coral_, at the time of writing these docs) is applied.
- `ColourTheme.NONE`: No specific theme applied. When the theme is set to "None", this means we don't add a `theme-****` class to the page, and the default theme (_Coral_, at the time of writing these docs) is applied (unless the page inherits a theme).
- `ColourTheme.CORAL`: Applies a `theme-coral` class to the page.
- `ColourTheme.NEBULINE`: Applies a `theme-nebuline` class to the page.
- `ColourTheme.LAGOON`: Applies a `theme-lagoon` class to the page.
- `ColourTheme.BANANA`: Applies a `theme-banana` class to the page.
- `ColourTheme.EARTH`: Applies a `theme-earth` class to the page.
- `ColourTheme.GREEN`: Applies a `theme-green` class to the page.

???+ tip

Expand Down
4 changes: 3 additions & 1 deletion docs/front-end/breakpoints.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ $breakpoints: (
'x-large' '(min-width: 1280px)',
// secondary breakpoints - use sparingly
'small' '(min-width: 410px)',
'xx-large' '(min-width: 1800px)'
'menu' '(min-width: 800px)',
'xx-large' '(min-width: 1440px)',
'xxx-large' '(min-width: 1800px)'
);
```

Expand Down
4 changes: 2 additions & 2 deletions docs/front-end/fonts.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

The site uses 'Outfit' as the main font and 'sans-serif' as the fallback font.

Outfit is avaible from [Google Fonts](https://fonts.google.com/specimen/Outfit) and is a variable font. This means that the font can be loaded as a single file and the weight and style can be adjusted using CSS. Any weight between 300 and 600 can be used.
Outfit is avaible from [Google Fonts](https://fonts.google.com/specimen/Outfit) and is a variable font. This means that the font can be loaded as a single file and the weight and style can be adjusted using CSS. Any weight between 200 and 600 can be used.

We originally limited the number of font variants for reasons of sustainability, although the fact that this is a variable font means that extra weights could be added if required without impacting carbon emissions.

Expand All @@ -12,7 +12,7 @@ The font is loaded using the following CSS in `sass/base/_fonts.scss`:
@font-face {
font-family: 'Outfit';
font-style: normal;
font-weight: 300 600;
font-weight: 200 600;
font-display: swap;
src: url(../fonts/outfit-variable-font.woff2) format('woff2-variations');
}
Expand Down
2 changes: 1 addition & 1 deletion docs/front-end/grid.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Any alignment or spacing rules for a component should be added using BEM syntax
grid-column: 2 / span 4;

@include media-query(large) {
grid-column: 4 / span 9;
grid-column: 2 / span 9;
}
}
}
Expand Down
9 changes: 0 additions & 9 deletions docs/front-end/motif-headings.md

This file was deleted.

6 changes: 3 additions & 3 deletions docs/front-end/themes_and_modes.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ The CSS to set the mode is an html class of either `.mode-dark` or `.mode-light`

An editor has an option to select a theme on each page. Selecting a theme on a page will change it for that page, and all child pages, unless another selection is made further down the page tree.

There are currently 4 themes in use: coral, lagoon, banana and earth. The CSS to set the theme is an html class of either `.theme-coral`, `.theme-lagoon`, `.theme-banana` or `.theme-earth`.
There are currently 4 themes in use: coral, nebuline, lagoon and green. The CSS to set the theme is an html class of either `.theme-coral`, `.theme-nebuline`, `.theme-lagoon` or `.theme-green`.

???+ note

If you are adding a new theme, check the colour contrast for all the new accent colours added, used in the drop-caps (remember to check both dark mode and light mode). They need to pass colour contrast as if the entire drop-cap was filled with that colour.
If you are adding a new theme, check the colour contrast for all the new accent colours added, used in the heading motifs (remember to check both dark mode and light mode). They need to pass colour contrast as if the entire heading was filled with that colour.

The drop-caps svgs use a semi-transparent version of the accent colours, and the contrast of the resulting colour also needs to be checked. The [colour contrast checker](https://chromewebstore.google.com/detail/colour-contrast-checker/nmmjeclfkgjdomacpcflgdkgpphpmnfe?hl=en-GB&utm_source=ext_sidebar) is a useful chrome extension to assist with this.
The motifs svgs use a semi-transparent version of the accent colours, and the contrast of the resulting colour also needs to be checked. The [colour contrast checker](https://chromewebstore.google.com/detail/colour-contrast-checker/nmmjeclfkgjdomacpcflgdkgpphpmnfe?hl=en-GB&utm_source=ext_sidebar) is a useful chrome extension to assist with this.

## Defaults

Expand Down
2 changes: 1 addition & 1 deletion docs/front-end/utility-classes.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ Most CSS classes used in this build are designed to fit with a particular compon

Some, such as the `listing` component are designed to be a base with variations across a number of variant components - this is made clear by the component naming: `listing--image.html`, `listing--simple.html` etc.

However, we have some utility classes which are designed for re-use, along with the option to to use Tailwind utility classes. Classes that are designed for re-use include `button`, `heading--[xyz]`, `link`, `supporting`, `.body` and `icon--listing-arrow`.
However, we have some utility classes which are designed for re-use, along with the option to to use Tailwind utility classes. Classes that are designed for re-use include `button`, `heading--[xyz]`, `text--[xyz]`, `link`, and `icon--listing-arrow`.

The same tailwind utility classes that are avialable in `wagtail-kit` are available in this build. `tailwind.config.js` includes the custom spacing for the build, allowing us to use classes such as `mb-spacerMini` where it wouldn't be practical to create a new scss component just for a one-off spacing adjustment.
6 changes: 3 additions & 3 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,18 +73,18 @@ nav:
- front-end/tooling.md
- front-end/placeholder-images.md
- front-end/utility-classes.md
- front-end/motif-headings.md
- 'Markdown block and codehilite': 'front-end/markdown-codehilite.md'
- front-end/impact-report.md
- front-end/lite-youtube.md
- front-end/facebook-app-id.md
- front-end/incident-form.md
- 'Navigation': 'navigation.md'
- 'Custom features':
- 'Contact': 'custom-features/contact.md'
- 'Division': 'custom-features/divisions.md'
- 'Migration-friendly StreamFields': 'custom-features/migration-friendly-streamfields.md'
- 'Theme': 'custom-features/theme.md'
- 'Modes': 'custom-features/modes.md'
- 'Contact': 'custom-features/contact.md'
- 'Theme': 'custom-features/theme.md'
- 'Continuous integration': 'continuous-integration.md'
- 'Anonymised data': 'anonymised-data.md'
- 'Data import': 'data-import.md'
Expand Down
21 changes: 20 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
},
"dependencies": {
"js-cookie": "^3.0.5",
"lite-youtube-embed": "^0.3.2"
"lite-youtube-embed": "^0.3.2",
"swiper": "^11.2.1"
}
}
6 changes: 2 additions & 4 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ mkdocs-material = "^9.5.41"
pymdown-extensions = "^10.11.2"

# Testing
factory-boy = "^3.3.0"
faker = "^33.3.0"
wagtail-factories = "^4.2.1"


Expand Down
3 changes: 3 additions & 0 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ module.exports = {
transparent: 'transparent',
background: 'var(--color--background)',
heading: 'var(--color--heading)',
themePrimary: 'var(--color--theme-primary)',
},
screens: {
sm: '410px',
Expand All @@ -38,7 +39,9 @@ module.exports = {
spacerMini: '15px',
spacerMiniPlus: '20px',
spacerSmall: '30px',
spacerSmallPlus: '40px',
spacerMedium: '60px',
spacerMediumPlus: '100px',
spacerLarge: '120px',
spacer: '160px',
spacerHalf: '80px',
Expand Down
42 changes: 42 additions & 0 deletions tbx/blog/migrations/0027_update_theme_colour_choices.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Generated by Django 4.2.16 on 2024-12-09 08:08

from django.db import migrations, models


class Migration(migrations.Migration):
dependencies = [
("blog", "0026_add_earth_colour_theme"),
]

operations = [
migrations.AlterField(
model_name="blogindexpage",
name="theme",
field=models.CharField(
blank=True,
choices=[
("", "None"),
("theme-coral", "Coral"),
("theme-nebuline", "Nebuline"),
("theme-lagoon", "Lagoon"),
("theme-green", "Green"),
],
max_length=25,
),
),
migrations.AlterField(
model_name="blogpage",
name="theme",
field=models.CharField(
blank=True,
choices=[
("", "None"),
("theme-coral", "Coral"),
("theme-nebuline", "Nebuline"),
("theme-lagoon", "Lagoon"),
("theme-green", "Green"),
],
max_length=25,
),
),
]
57 changes: 57 additions & 0 deletions tbx/blog/migrations/0028_divisionmixin_and_navigationsetmixin.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# Generated by Django 5.1.4 on 2025-01-28 09:34

from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):
dependencies = [
("blog", "0027_update_theme_colour_choices"),
("divisions", "0002_divisionmixin_and_navigationsetmixin"),
("navigation", "0007_divisionmixin_and_navigationsetmixin"),
]

operations = [
migrations.AddField(
model_name="blogindexpage",
name="division",
field=models.ForeignKey(
blank=True,
null=True,
on_delete=django.db.models.deletion.SET_NULL,
to="divisions.divisionpage",
),
),
migrations.AddField(
model_name="blogindexpage",
name="override_navigation_set",
field=models.ForeignKey(
blank=True,
null=True,
on_delete=django.db.models.deletion.SET_NULL,
related_name="+",
to="navigation.navigationset",
),
),
migrations.AddField(
model_name="blogpage",
name="division",
field=models.ForeignKey(
blank=True,
null=True,
on_delete=django.db.models.deletion.SET_NULL,
to="divisions.divisionpage",
),
),
migrations.AddField(
model_name="blogpage",
name="override_navigation_set",
field=models.ForeignKey(
blank=True,
null=True,
on_delete=django.db.models.deletion.SET_NULL,
related_name="+",
to="navigation.navigationset",
),
),
]
Loading