From 61bd2511a821900fd2b707b14e72bc41834264a7 Mon Sep 17 00:00:00 2001 From: Matt Westcott Date: Fri, 6 Feb 2015 12:15:34 +0000 Subject: [PATCH] Don't bother to pass show_help_text to templates, because no templates ever use it. This means that the show_help_text parameter to render_as_field now has no effect, so we can safely remove it from the one call that uses it --- wagtail/wagtailadmin/edit_handlers.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/wagtail/wagtailadmin/edit_handlers.py b/wagtail/wagtailadmin/edit_handlers.py index 49caf2059d..a67dcd4688 100644 --- a/wagtail/wagtailadmin/edit_handlers.py +++ b/wagtail/wagtailadmin/edit_handlers.py @@ -422,7 +422,7 @@ class BaseFieldPanel(EditHandler): def render_as_object(self): return mark_safe(render_to_string(self.object_template, { 'self': self, - 'field_content': self.render_as_field(show_help_text=False), + 'field_content': self.render_as_field(), })) field_template = "wagtailadmin/edit_handlers/field_panel_field.html" @@ -431,7 +431,6 @@ class BaseFieldPanel(EditHandler): context = { 'field': self.bound_field, 'field_type': self.field_type(), - 'show_help_text': show_help_text, } context.update(extra_context) return mark_safe(render_to_string(self.field_template, context)) @@ -502,7 +501,6 @@ class BaseChooserPanel(BaseFieldPanel): 'field': self.bound_field, self.object_type_name: instance_obj, 'is_chosen': bool(instance_obj), - 'show_help_text': show_help_text, } context.update(extra_context) return mark_safe(render_to_string(self.field_template, context))