Skip to content

Commit

Permalink
remove embed block from deprecated group
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahframe committed Aug 19, 2024
1 parent 0d02fff commit 62a3941
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions cdhweb/pages/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,14 @@
from springkit.blocks import CTABlock, JumplinkableH2Block
from springkit.models.mixins import JumplinksMixin
from taggit.managers import TaggableManager
from wagtail.admin.panels import (
FieldPanel,
MultiFieldPanel,
ObjectList,
TabbedInterface,
)
from wagtail.admin.panels import FieldPanel, MultiFieldPanel
from wagtail.blocks import RichTextBlock, StreamBlock, StructBlock, TextBlock
from wagtail.contrib.settings.models import BaseSiteSetting, register_setting
from wagtail.documents.blocks import DocumentChooserBlock
from wagtail.documents.models import AbstractDocument, DocumentQuerySet
from wagtail.embeds.blocks import EmbedBlock
from wagtail.fields import RichTextField, StreamField
from wagtail.images.blocks import ImageChooserBlock
from wagtail.images.models import Image
from wagtail.models import CollectionMember, Page
from wagtail.search import index
from wagtail.snippets.blocks import SnippetChooserBlock
Expand All @@ -36,7 +31,6 @@
from .blocks.article_index_block import ArticleTileBlock
from .blocks.cdh_hosted_video import HostedVideo
from .blocks.download_block import DownloadBlock
from .blocks.embed_block import EmbedBlock
from .blocks.event_index_block import EventTileBlock
from .blocks.feature_block import FeatureBlock
from .blocks.image_block import ImageBlock
Expand Down Expand Up @@ -88,8 +82,8 @@
("tile_block", StandardTileBlock()),
("article_tile_block", ArticleTileBlock()),
("event_tile_block", EventTileBlock()),
("embed", EmbedBlock()),
("code", CodeBlock())
("embed", EmbedBlock(icon="plus-inverse")),
("code", CodeBlock()),
]


Expand Down

0 comments on commit 62a3941

Please sign in to comment.