Skip to content

Commit

Permalink
Migrations and formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesbiggs committed Feb 10, 2025
1 parent a4788a7 commit ac674c9
Show file tree
Hide file tree
Showing 4 changed files with 94 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Generated by Django 5.1.5 on 2025-02-10 08:55
# etna:allowAlterField
# etna:allowRemoveField

import wagtail.fields
from django.db import migrations


class Migration(migrations.Migration):

dependencies = [
('articles', '0116_articleindexpage_short_title_articlepage_short_title_and_more'),
]

operations = [
migrations.RemoveField(
model_name='articlepage',
name='display_content_warning',
),
migrations.RemoveField(
model_name='focusedarticlepage',
name='display_content_warning',
),
migrations.RemoveField(
model_name='recordarticlepage',
name='display_content_warning',
),
migrations.AlterField(
model_name='articlepage',
name='custom_warning_text',
field=wagtail.fields.RichTextField(blank=True, help_text='If specified, will be used for the content warning.', verbose_name='custom content warning text (optional)'),
),
migrations.AlterField(
model_name='focusedarticlepage',
name='custom_warning_text',
field=wagtail.fields.RichTextField(blank=True, help_text='If specified, will be used for the content warning.', verbose_name='custom content warning text (optional)'),
),
migrations.AlterField(
model_name='recordarticlepage',
name='custom_warning_text',
field=wagtail.fields.RichTextField(blank=True, help_text='If specified, will be used for the content warning.', verbose_name='custom content warning text (optional)'),
),
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Generated by Django 5.1.5 on 2025-02-10 08:55
# etna:allowAlterField
# etna:allowRemoveField

import wagtail.fields
from django.db import migrations


class Migration(migrations.Migration):

dependencies = [
('blog', '0014_alter_blogpostpage_body'),
]

operations = [
migrations.RemoveField(
model_name='blogpostpage',
name='display_content_warning',
),
migrations.AlterField(
model_name='blogpostpage',
name='custom_warning_text',
field=wagtail.fields.RichTextField(blank=True, help_text='If specified, will be used for the content warning.', verbose_name='custom content warning text (optional)'),
),
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Generated by Django 5.1.5 on 2025-02-10 08:55
# etna:allowAlterField
# etna:allowRemoveField

import wagtail.fields
from django.db import migrations


class Migration(migrations.Migration):

dependencies = [
('collections', '0061_explorerindexpage_short_title_and_more'),
]

operations = [
migrations.RemoveField(
model_name='highlightgallerypage',
name='display_content_warning',
),
migrations.AlterField(
model_name='highlightgallerypage',
name='custom_warning_text',
field=wagtail.fields.RichTextField(blank=True, help_text='If specified, will be used for the content warning.', verbose_name='custom content warning text (optional)'),
),
]
4 changes: 1 addition & 3 deletions etna/core/models/mixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,7 @@ class ContentWarningMixin(models.Model):
verbose_name="custom content warning text (optional)",
features=["link"],
blank=True,
help_text=(
"If specified, will be used for the content warning."
),
help_text=("If specified, will be used for the content warning."),
)

content_panels = [
Expand Down

0 comments on commit ac674c9

Please sign in to comment.