Browse Source

fix #2459

pull/2464/head
Cesar Carvalho 7 years ago
parent
commit
35b832db1c
  1. 3
      sapl/base/views.py

3
sapl/base/views.py

@ -1078,7 +1078,6 @@ class AppConfigCrud(CrudAux):
class BaseMixin(CrudAux.BaseMixin): class BaseMixin(CrudAux.BaseMixin):
form_class = ConfiguracoesAppForm form_class = ConfiguracoesAppForm
list_url = '' list_url = ''
create_url = '' create_url = ''
@ -1092,7 +1091,6 @@ class AppConfigCrud(CrudAux):
return super().form_valid(form) return super().form_valid(form)
def gerar_hash(self, inst): def gerar_hash(self, inst):
inst.save() inst.save()
if inst.texto_original: if inst.texto_original:
inst.hash_code = gerar_hash_arquivo( inst.hash_code = gerar_hash_arquivo(
@ -1101,7 +1099,6 @@ class AppConfigCrud(CrudAux):
ta = inst.texto_articulado.first() ta = inst.texto_articulado.first()
inst.hash_code = 'P' + ta.hash() + SEPARADOR_HASH_PROPOSICAO + str(inst.pk) inst.hash_code = 'P' + ta.hash() + SEPARADOR_HASH_PROPOSICAO + str(inst.pk)
inst.save() inst.save()
return
class CreateView(CrudAux.CreateView): class CreateView(CrudAux.CreateView):

Loading…
Cancel
Save