Add row_title
to template context for view_row
This commit is contained in:
parent
85e6e7e08a
commit
568a625500
|
@ -4,7 +4,7 @@
|
||||||
<%def name="title()">${model_title}</%def>
|
<%def name="title()">${model_title}</%def>
|
||||||
|
|
||||||
<%def name="content_title()">
|
<%def name="content_title()">
|
||||||
<h1>${instance}</h1>
|
<h1>${row_title}</h1>
|
||||||
</%def>
|
</%def>
|
||||||
|
|
||||||
<%def name="context_menu_items()">
|
<%def name="context_menu_items()">
|
||||||
|
|
|
@ -1731,12 +1731,14 @@ class MasterView(View):
|
||||||
return self.render_to_response('view_row', {
|
return self.render_to_response('view_row', {
|
||||||
'instance': row,
|
'instance': row,
|
||||||
'instance_title': self.get_instance_title(parent),
|
'instance_title': self.get_instance_title(parent),
|
||||||
|
'row_title': self.get_row_instance_title(row),
|
||||||
'instance_url': self.get_action_url('view', parent),
|
'instance_url': self.get_action_url('view', parent),
|
||||||
'instance_editable': self.row_editable(row),
|
'instance_editable': self.row_editable(row),
|
||||||
'instance_deletable': self.row_deletable(row),
|
'instance_deletable': self.row_deletable(row),
|
||||||
'rows_creatable': self.rows_creatable and self.rows_creatable_for(parent),
|
'rows_creatable': self.rows_creatable and self.rows_creatable_for(parent),
|
||||||
'model_title': self.get_row_model_title(),
|
'model_title': self.get_row_model_title(),
|
||||||
'model_title_plural': self.get_row_model_title_plural(),
|
'model_title_plural': self.get_row_model_title_plural(),
|
||||||
|
'parent_instance': parent,
|
||||||
'parent_model_title': self.get_model_title(),
|
'parent_model_title': self.get_model_title(),
|
||||||
'action_url': self.get_row_action_url,
|
'action_url': self.get_row_action_url,
|
||||||
'form': form})
|
'form': form})
|
||||||
|
|
Loading…
Reference in a new issue