From 02e618cd6e9905f378d3fa659be7cfd53ef0f463 Mon Sep 17 00:00:00 2001 From: Matt Westcott Date: Thu, 19 Feb 2015 15:36:06 +0000 Subject: [PATCH] document why CharBlock doesn't need to pass 'label' / 'initial' to CharField --- wagtail/wagtailcore/blocks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wagtail/wagtailcore/blocks.py b/wagtail/wagtailcore/blocks.py index df501ba75..fca443eae 100644 --- a/wagtail/wagtailcore/blocks.py +++ b/wagtail/wagtailcore/blocks.py @@ -351,7 +351,7 @@ class FieldBlock(Block): class CharBlock(FieldBlock): def __init__(self, required=True, help_text=None, max_length=None, min_length=None, **kwargs): - # TODO: decide what to do about 'label' and 'initial' parameters to the form field + # CharField's 'label' and 'initial' parameters are not exposed, as Block handles that functionality natively (via 'label' and 'default') self.field = forms.CharField(required=required, help_text=help_text, max_length=max_length, min_length=min_length) super(CharBlock, self).__init__(**kwargs)