Browse Source

Correção de bug legado

pull/159/head
Sesostris Vieira 3 years ago
parent
commit
95cc371c61
  1. 2
      sigi/apps/ocorrencias/admin.py

2
sigi/apps/ocorrencias/admin.py

@ -133,7 +133,7 @@ class OcorrenciaAdmin(admin.ModelAdmin):
def save_model(self, request, obj, form, change):
if not change:
obj.servidor_registro = Servidor.objects.get(user=request.user)
obj.save()
super().save_model(request, obj, form, change)
def save_formset(self, request, form, formset, change):
instances = formset.save(commit=False)

Loading…
Cancel
Save