Added a new 'website' field to the team_members StreamField in the AboutUsPage model. Updated the template to display the website link if provided, ensuring better flexibility for showcasing team member information.main
parent
21a67afc27
commit
fdbbb45298
@ -0,0 +1,19 @@ |
|||||||
|
# Generated by Django 5.2 on 2025-04-30 15:07 |
||||||
|
|
||||||
|
import wagtail.fields |
||||||
|
from django.db import migrations |
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration): |
||||||
|
|
||||||
|
dependencies = [ |
||||||
|
('core', '0018_remove_homepage_slide1_headline_and_more'), |
||||||
|
] |
||||||
|
|
||||||
|
operations = [ |
||||||
|
migrations.AlterField( |
||||||
|
model_name='aboutuspage', |
||||||
|
name='team_members', |
||||||
|
field=wagtail.fields.StreamField([('team_member', 6)], blank=True, block_lookup={0: ('wagtail.blocks.CharBlock', (), {'max_length': 255}), 1: ('wagtail.images.blocks.ImageChooserBlock', (), {'required': False}), 2: ('wagtail.blocks.RichTextBlock', (), {'required': False}), 3: ('wagtail.blocks.EmailBlock', (), {'required': False}), 4: ('wagtail.blocks.CharBlock', (), {'max_length': 128, 'required': False}), 5: ('wagtail.blocks.URLBlock', (), {'required': False}), 6: ('wagtail.blocks.StructBlock', [[('name', 0), ('position', 0), ('photo', 1), ('bio', 2), ('email', 3), ('phone', 4), ('website', 5), ('linkedin', 5), ('xing', 5)]], {})}, null=True), |
||||||
|
), |
||||||
|
] |
Loading…
Reference in new issue