feat: add people to projects and articles
This commit is contained in:
+9
-2
@@ -37,10 +37,17 @@ class SiteBrandingAdmin(admin.ModelAdmin):
|
||||
},
|
||||
),
|
||||
(
|
||||
"Blog article people section",
|
||||
"Article people section",
|
||||
{
|
||||
"fields": ("article_people_eyebrow", "article_people_title"),
|
||||
"description": "These headings are shared by every blog article that has people cards.",
|
||||
"description": "These headings are shared by blog articles and project articles that have people cards.",
|
||||
},
|
||||
),
|
||||
(
|
||||
"Project people section",
|
||||
{
|
||||
"fields": ("project_people_eyebrow", "project_people_title"),
|
||||
"description": "These headings are shared by main projects and sub-projects that have people cards.",
|
||||
},
|
||||
),
|
||||
(
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
# Generated by Django 5.2.16 on 2026-10-28 14:09
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('core', '0006_sitebranding_article_people_eyebrow_and_more'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='sitebranding',
|
||||
name='project_people_eyebrow',
|
||||
field=models.CharField(blank=True, default='The people behind this project', help_text='Small heading above the people cards on main projects and sub-projects.', max_length=160),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='sitebranding',
|
||||
name='project_people_title',
|
||||
field=models.CharField(default='Organizers & collaborators', help_text='Heading above the people cards on main projects and sub-projects.', max_length=200),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='sitebranding',
|
||||
name='article_people_eyebrow',
|
||||
field=models.CharField(blank=True, default='The people behind this article', help_text='Small heading above the people cards on blog and project articles.', max_length=160),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='sitebranding',
|
||||
name='article_people_title',
|
||||
field=models.CharField(default='Organizers & collaborators', help_text='Heading above the people cards on blog and project articles.', max_length=200),
|
||||
),
|
||||
]
|
||||
+10
-2
@@ -34,12 +34,20 @@ class SiteBranding(models.Model):
|
||||
max_length=160,
|
||||
blank=True,
|
||||
default="The people behind this article",
|
||||
help_text="Small heading above the people cards on every blog article.",
|
||||
help_text="Small heading above the people cards on blog and project articles.",
|
||||
)
|
||||
article_people_title = models.CharField(
|
||||
max_length=200,
|
||||
default="Organizers & collaborators",
|
||||
help_text="Heading above the people cards on every blog article.",
|
||||
help_text="Heading above the people cards on blog and project articles.",
|
||||
)
|
||||
project_people_eyebrow = models.CharField(
|
||||
max_length=160, blank=True, default="The people behind this project",
|
||||
help_text="Small heading above the people cards on main projects and sub-projects.",
|
||||
)
|
||||
project_people_title = models.CharField(
|
||||
max_length=200, default="Organizers & collaborators",
|
||||
help_text="Heading above the people cards on main projects and sub-projects.",
|
||||
)
|
||||
|
||||
icon = models.ImageField(
|
||||
|
||||
Reference in New Issue
Block a user