feat: update Wagtail, add Threads footer link
This commit is contained in:
parent
9fe3acd32d
commit
3d59eafbf0
8 changed files with 72 additions and 8 deletions
20
base/migrations/0005_alter_footertext_locale.py
Normal file
20
base/migrations/0005_alter_footertext_locale.py
Normal file
|
@ -0,0 +1,20 @@
|
|||
# Generated by Django 5.0.2 on 2024-10-05 19:39
|
||||
|
||||
import django.db.models.deletion
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('base', '0004_alter_footertext_body'),
|
||||
('wagtailcore', '0094_alter_page_locale'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='footertext',
|
||||
name='locale',
|
||||
field=models.ForeignKey(editable=False, on_delete=django.db.models.deletion.PROTECT, related_name='+', to='wagtailcore.locale', verbose_name='locale'),
|
||||
),
|
||||
]
|
|
@ -0,0 +1,23 @@
|
|||
# Generated by Django 5.0.2 on 2024-10-05 19:50
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('base', '0005_alter_footertext_locale'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='navigationsettings',
|
||||
name='bluesky_url',
|
||||
field=models.URLField(blank=True, verbose_name='Bluesky URL'),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='navigationsettings',
|
||||
name='threads_url',
|
||||
field=models.URLField(blank=True, verbose_name='Threads URL'),
|
||||
),
|
||||
]
|
|
@ -32,6 +32,8 @@ class NavigationSettings(BaseGenericSetting):
|
|||
linkedin_url = models.URLField(verbose_name="LinkedIn URL", blank=True)
|
||||
github_url = models.URLField(verbose_name="GitHub URL", blank=True)
|
||||
mastodon_url = models.URLField(verbose_name="Mastodon URL", blank=True)
|
||||
bluesky_url = models.URLField(verbose_name="Bluesky URL", blank=True)
|
||||
threads_url = models.URLField(verbose_name="Threads URL", blank=True)
|
||||
|
||||
panels = [
|
||||
MultiFieldPanel(
|
||||
|
@ -39,6 +41,8 @@ class NavigationSettings(BaseGenericSetting):
|
|||
FieldPanel("linkedin_url"),
|
||||
FieldPanel("github_url"),
|
||||
FieldPanel("mastodon_url"),
|
||||
FieldPanel("bluesky_url"),
|
||||
FieldPanel("threads_url"),
|
||||
],
|
||||
"Social settings",
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue