Browse Source

Fixa titulo de tela em Mesa de Sessão - #627

pull/691/head
LeandroRoberto 8 years ago
parent
commit
e110f3c216
  1. 6
      sapl/sessao/views.py

6
sapl/sessao/views.py

@ -702,6 +702,12 @@ class MesaView(FormMixin, DetailView):
return self.render_to_response(context) return self.render_to_response(context)
def get_context_data(self, **kwargs):
context = FormMixin.get_context_data(self, **kwargs)
context['title'] = '%s <small>(%s)</small>' % (
_('Mesa Diretora'), self.object)
return context
@method_decorator(permission_required_for_app(AppConfig.label)) @method_decorator(permission_required_for_app(AppConfig.label))
def post(self, request, *args, **kwargs): def post(self, request, *args, **kwargs):
self.object = self.get_object() self.object = self.get_object()

Loading…
Cancel
Save