From 4ceea9c552890d7a2f3dd36c61c99ccfbd643d47 Mon Sep 17 00:00:00 2001 From: Leandro Roberto Date: Wed, 23 Jan 2019 23:12:34 -0200 Subject: [PATCH] =?UTF-8?q?retira=20render=20padr=C3=A3o=20scripts=20css?= =?UTF-8?q?=20e=20js=20de=20image=5Fcropping?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sapl/parlamentares/views.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sapl/parlamentares/views.py b/sapl/parlamentares/views.py index aa636df79..3f0146cf0 100644 --- a/sapl/parlamentares/views.py +++ b/sapl/parlamentares/views.py @@ -464,6 +464,10 @@ class ParlamentarCrud(Crud): layout_key = 'ParlamentarUpdate' + def render_to_response(self, context, **response_kwargs): + context['form'].helper.include_media = False + return super().render_to_response(context, **response_kwargs) + class CreateView(Crud.CreateView): form_class = ParlamentarCreateForm