Skip to content

Commit 57b8d4d

Browse files
committed
Add FileField called resume to Home page model.
1 parent c4965e1 commit 57b8d4d

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Generated by Django 4.2.21 on 2025-06-17 20:23
2+
3+
from django.db import migrations, models
4+
5+
6+
class Migration(migrations.Migration):
7+
8+
dependencies = [
9+
('home', '0003_homepage_intro'),
10+
]
11+
12+
operations = [
13+
migrations.AddField(
14+
model_name='homepage',
15+
name='resume',
16+
field=models.FileField(blank=True, upload_to=''),
17+
),
18+
]

app/alloydflanagan/home/models.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
1+
from django.db.models import FileField
2+
13
from wagtail.admin.panels import FieldPanel
24
from wagtail.models import Page
35
from wagtail.fields import RichTextField
46

5-
67
class HomePage(Page):
78
intro = RichTextField()
9+
# may move resume to AboutPage model if/when we have one
10+
resume = FileField(blank=True)
811

912
content_panels = Page.content_panels + [
1013
FieldPanel("intro", classname="full"),
14+
FieldPanel("resume", classname="full"),
1115
]

0 commit comments

Comments
 (0)