misc: expose cell in context when rendering its manager (#7346)

This commit is contained in:
Frédéric Péters 2015-05-25 12:01:11 +02:00
parent 650010b835
commit f21cefe392
1 changed files with 1 additions and 0 deletions

View File

@ -28,6 +28,7 @@ def cell_form(context, cell):
context['form'] = form_class(instance=cell, prefix='c%s' % cell.get_reference())
else:
context['form'] = None
context['cell'] = cell
cell_form_template = template.loader.get_template(cell.manager_form_template)
with context.push():
context.update(cell.get_extra_manager_context())