mirror of
https://github.com/wagtail/wagtail.git
synced 2024-12-01 11:41:20 +01:00
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
This commit is contained in:
parent
a5edb0ce0f
commit
61bd2511a8
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user