From 49b13a31391e7ecc49ebee33a346b98702bee9a9 Mon Sep 17 00:00:00 2001 From: Matt Westcott Date: Mon, 25 Jan 2021 14:41:14 +0000 Subject: [PATCH] Fix indentation on MinMaxCountStreamModel / BlockCountsStreamModel --- wagtail/tests/testapp/models.py | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/wagtail/tests/testapp/models.py b/wagtail/tests/testapp/models.py index 0e64bdc6e9..564dc55637 100644 --- a/wagtail/tests/testapp/models.py +++ b/wagtail/tests/testapp/models.py @@ -1008,27 +1008,28 @@ class StreamModel(models.Model): class MinMaxCountStreamModel(models.Model): - body = StreamField([ - ('text', CharBlock()), - ('rich_text', RichTextBlock()), - ('image', ImageChooserBlock()), - ], - min_num=2, - max_num=5, + body = StreamField( + [ + ('text', CharBlock()), + ('rich_text', RichTextBlock()), + ('image', ImageChooserBlock()), + ], + min_num=2, max_num=5 ) class BlockCountsStreamModel(models.Model): - body = StreamField([ - ('text', CharBlock()), - ('rich_text', RichTextBlock()), - ('image', ImageChooserBlock()), - ], + body = StreamField( + [ + ('text', CharBlock()), + ('rich_text', RichTextBlock()), + ('image', ImageChooserBlock()), + ], block_counts={ "text": {"min_num": 1}, "rich_text": {"max_num": 1}, "image": {"min_num": 1, "max_num": 1}, - } + } )