-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2846 from uktrade/develop
Release to master
- Loading branch information
Showing
24 changed files
with
360 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
99 changes: 99 additions & 0 deletions
99
core/migrations/0130_ukeacta_detailpage_call_to_action_eventorderable.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
# Generated by Django 4.1.13 on 2024-01-12 17:57 | ||
|
||
import django.db.models.deletion | ||
import modelcluster.fields | ||
import wagtail.blocks | ||
import wagtail.fields | ||
import wagtail.snippets.blocks | ||
from django.db import migrations, models | ||
|
||
import core.blocks | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('export_academy', '0033_alter_coursepage_metadata_alter_coursepage_reviews'), | ||
('core', '0129_alter_greatmedia_subtitles_en_and_more'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='UKEACTA', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
( | ||
'image', | ||
wagtail.fields.StreamField( | ||
[ | ||
( | ||
'media', | ||
wagtail.blocks.StreamBlock([('image', core.blocks.ImageBlock())], max_num=1, min_num=1), | ||
) | ||
], | ||
blank=True, | ||
null=True, | ||
use_json_field=True, | ||
), | ||
), | ||
('name', models.CharField(help_text='Snippet name', max_length=50)), | ||
], | ||
options={ | ||
'verbose_name': 'UKEA CTA', | ||
'verbose_name_plural': "UKEA CTA's", | ||
}, | ||
), | ||
migrations.AddField( | ||
model_name='detailpage', | ||
name='call_to_action', | ||
field=wagtail.fields.StreamField( | ||
[ | ||
( | ||
'ukea_article_cta', | ||
wagtail.blocks.ListBlock( | ||
wagtail.snippets.blocks.SnippetChooserBlock('core.UKEACTA'), | ||
icon='link', | ||
label='UKEA Call to action', | ||
max_num=1, | ||
template='learn/includes/article_page_cta.html', | ||
), | ||
) | ||
], | ||
blank=True, | ||
null=True, | ||
use_json_field=True, | ||
), | ||
), | ||
migrations.CreateModel( | ||
name='EventOrderable', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('sort_order', models.IntegerField(blank=True, editable=False, null=True)), | ||
( | ||
'event', | ||
models.ForeignKey( | ||
blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='export_academy.event' | ||
), | ||
), | ||
( | ||
'page', | ||
modelcluster.fields.ParentalKey( | ||
on_delete=django.db.models.deletion.CASCADE, related_name='ukea_cta_links', to='core.ukeacta' | ||
), | ||
), | ||
( | ||
'series', | ||
models.ForeignKey( | ||
blank=True, | ||
null=True, | ||
on_delete=django.db.models.deletion.SET_NULL, | ||
to='export_academy.coursepage', | ||
), | ||
), | ||
], | ||
options={ | ||
'ordering': ['sort_order'], | ||
'abstract': False, | ||
}, | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.