diff --git a/main/migrations/0093_mainarticlespage_perex.py b/main/migrations/0093_mainarticlespage_perex.py new file mode 100644 index 0000000000000000000000000000000000000000..aa8ab5f919e979d48aeb9ece94b6d36aae4e8eb3 --- /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 375cdaa64b78592fe06fac1070377d9c1182b468..25855c3c8f5fb9c365c354af2d8018e4b94dcf55 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()