Browse Source

Fix #2282 (#2283)

pull/2287/head
Victor Fabre 6 years ago
committed by Edward
parent
commit
563d3db75d
  1. 2
      sapl/parlamentares/forms.py

2
sapl/parlamentares/forms.py

@ -142,7 +142,7 @@ class LegislaturaForm(ModelForm):
pk = self.instance.pk
ultima_legislatura = Legislatura.objects.filter(data_inicio__lte=data_inicio
ultima_legislatura = Legislatura.objects.filter(data_inicio__lt=data_inicio
).order_by('-data_inicio').first()
proxima_legislatura = Legislatura.objects.filter(data_fim__gt=data_fim
).order_by('data_fim').first()

Loading…
Cancel
Save