Browse Source

Conserto de bug do protocolo.user do documento

pull/3467/head
Gustavo274 3 years ago
parent
commit
857e168343
  1. 4
      sapl/protocoloadm/views.py

4
sapl/protocoloadm/views.py

@ -599,7 +599,7 @@ class ProtocoloDocumentoView(PermissionRequiredMixin,
def get_initial(self):
initial = super().get_initial()
initial['user'] = self.request.user.usernames
initial['user'] = self.request.user.username
initial['user_data_hora_manual'] = self.request.user.username
initial['ip_data_hora_manual'] = get_client_ip(self.request)
initial['data'] = timezone.localdate(timezone.now())
@ -664,7 +664,7 @@ class ProtocoloDocumentoView(PermissionRequiredMixin,
protocolo.ano = timezone.now().year
protocolo.assunto_ementa = self.request.POST['assunto']
protocolo.user = username
protocolo.user = self.request.user
if form.cleaned_data['data_hora_manual'] == 'True':
protocolo.timestamp = None

Loading…
Cancel
Save