kopia lustrzana https://github.com/wagtail/wagtail
Fix indentation on MinMaxCountStreamModel / BlockCountsStreamModel
rodzic
a8f41258b5
commit
49b13a3139
|
@ -1008,18 +1008,19 @@ class StreamModel(models.Model):
|
||||||
|
|
||||||
|
|
||||||
class MinMaxCountStreamModel(models.Model):
|
class MinMaxCountStreamModel(models.Model):
|
||||||
body = StreamField([
|
body = StreamField(
|
||||||
|
[
|
||||||
('text', CharBlock()),
|
('text', CharBlock()),
|
||||||
('rich_text', RichTextBlock()),
|
('rich_text', RichTextBlock()),
|
||||||
('image', ImageChooserBlock()),
|
('image', ImageChooserBlock()),
|
||||||
],
|
],
|
||||||
min_num=2,
|
min_num=2, max_num=5
|
||||||
max_num=5,
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
class BlockCountsStreamModel(models.Model):
|
class BlockCountsStreamModel(models.Model):
|
||||||
body = StreamField([
|
body = StreamField(
|
||||||
|
[
|
||||||
('text', CharBlock()),
|
('text', CharBlock()),
|
||||||
('rich_text', RichTextBlock()),
|
('rich_text', RichTextBlock()),
|
||||||
('image', ImageChooserBlock()),
|
('image', ImageChooserBlock()),
|
||||||
|
|
Ładowanie…
Reference in New Issue