-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ad6a689
commit 0b326b6
Showing
7 changed files
with
31 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -169,4 +169,4 @@ | |
# Add external link to richtext features | ||
RICHTEXT_FEATURES = [ | ||
"new_tab_link", | ||
] | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
# Generated by Django 3.2.20 on 2023-07-05 10:55 | ||
|
||
from django.db import migrations | ||
import wagtail.fields | ||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('home', '0001_initial'), | ||
("home", "0001_initial"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='homepage', | ||
name='body', | ||
field=wagtail.fields.RichTextField(default='Test'), | ||
model_name="homepage", | ||
name="body", | ||
field=wagtail.fields.RichTextField(default="Test"), | ||
preserve_default=False, | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,9 @@ | ||
from django.db import models | ||
|
||
from wagtail.models import Page | ||
from wagtail.fields import RichTextField | ||
from wagtail.admin.panels import FieldPanel | ||
from wagtail.fields import RichTextField | ||
from wagtail.models import Page | ||
|
||
|
||
class HomePage(Page): | ||
body = RichTextField() | ||
content_panels = Page.content_panels + [ | ||
FieldPanel("body") | ||
] | ||
content_panels = Page.content_panels + [FieldPanel("body")] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,38 @@ | ||
# Generated by Django 4.0.10 on 2023-07-06 07:05 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
import wagtail.fields | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
initial = True | ||
|
||
dependencies = [ | ||
('wagtailcore', '0069_log_entry_jsonfield'), | ||
("wagtailcore", "0069_log_entry_jsonfield"), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='TestPage', | ||
name="TestPage", | ||
fields=[ | ||
('page_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='wagtailcore.page')), | ||
('body', wagtail.fields.RichTextField()), | ||
( | ||
"page_ptr", | ||
models.OneToOneField( | ||
auto_created=True, | ||
on_delete=django.db.models.deletion.CASCADE, | ||
parent_link=True, | ||
primary_key=True, | ||
serialize=False, | ||
to="wagtailcore.page", | ||
), | ||
), | ||
("body", wagtail.fields.RichTextField()), | ||
], | ||
options={ | ||
'abstract': False, | ||
"abstract": False, | ||
}, | ||
bases=('wagtailcore.page',), | ||
bases=("wagtailcore.page",), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters