Skip to content

Commit 9bdf4f0

Browse files
Remove FacultyBlock class (#2248)
* Remove FacultyBlock class * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * format --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent a5a9fb7 commit 9bdf4f0

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

cms/blocks.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
from django.apps import apps
77
from django.core.exceptions import ValidationError
88
from wagtail import blocks
9-
from wagtail.images.blocks import ImageChooserBlock
109

1110

1211
class ResourceBlock(blocks.StructBlock):
@@ -33,20 +32,6 @@ class PriceBlock(blocks.StructBlock):
3332
)
3433

3534

36-
class FacultyBlock(blocks.StructBlock):
37-
"""
38-
Block class that defines a faculty member
39-
"""
40-
41-
name = blocks.CharBlock(max_length=100, help_text="Name of the faculty member.")
42-
image = ImageChooserBlock(
43-
help_text="Profile image size must be at least 300x300 pixels."
44-
)
45-
description = blocks.RichTextBlock(
46-
help_text="A brief description about the faculty member."
47-
)
48-
49-
5035
class CourseRunFieldBlock(blocks.FieldBlock):
5136
"""
5237
Block class that allows selecting a course run

0 commit comments

Comments
 (0)