From 066ea3232a7e69d3f5cce97bc36d386be23fe176 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Valenta?= <git@imaniti.org> Date: Thu, 21 Dec 2023 09:54:06 +0100 Subject: [PATCH] re-add perex to articles page --- .../migrations/0093_mainarticlespage_perex.py | 19 +++++++++++++++++++ main/models.py | 2 ++ 2 files changed, 21 insertions(+) create mode 100644 main/migrations/0093_mainarticlespage_perex.py diff --git a/main/migrations/0093_mainarticlespage_perex.py b/main/migrations/0093_mainarticlespage_perex.py new file mode 100644 index 00000000..aa8ab5f9 --- /dev/null +++ b/main/migrations/0093_mainarticlespage_perex.py @@ -0,0 +1,19 @@ +# Generated by Django 4.1.10 on 2023-12-21 08:51 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('main', '0092_mainsearchpage_search_image'), + ] + + operations = [ + migrations.AddField( + model_name='mainarticlespage', + name='perex', + field=models.TextField(default=''), + preserve_default=False, + ), + ] diff --git a/main/models.py b/main/models.py index 375cdaa6..25855c3c 100644 --- a/main/models.py +++ b/main/models.py @@ -329,6 +329,7 @@ class MainArticlesPage( last_import_log = models.TextField( "Výstup z posledního importu", null=True, blank=True ) + perex = models.TextField() import_panels = [ MultiFieldPanel( @@ -358,6 +359,7 @@ class MainArticlesPage( ### PANELS content_panels = Page.content_panels + [ + FieldPanel("perex"), FieldPanel("shared_tags"), ] promote_panels = make_promote_panels() -- GitLab