diff --git a/sapl/materia/forms.py b/sapl/materia/forms.py index f4f054c6e..86b35b348 100644 --- a/sapl/materia/forms.py +++ b/sapl/materia/forms.py @@ -590,6 +590,7 @@ class MateriaLegislativaFilterSet(django_filters.FilterSet): def pega_ultima_tramitacao(): + import ipdb; ipdb.set_trace() ultimas_tramitacoes = Tramitacao.objects.values( 'materia_id').annotate(data_encaminhamento=Max( 'data_encaminhamento'), diff --git a/sapl/materia/migrations/0053_auto_20161004_1854.py b/sapl/materia/migrations/0053_auto_20161004_1854.py new file mode 100644 index 000000000..b9e2bd88a --- /dev/null +++ b/sapl/materia/migrations/0053_auto_20161004_1854.py @@ -0,0 +1,19 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9.7 on 2016-10-04 21:54 +from __future__ import unicode_literals + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('materia', '0052_auto_20161004_1041'), + ] + + operations = [ + migrations.AlterModelOptions( + name='tramitacao', + options={'verbose_name': 'Tramitação', 'verbose_name_plural': 'Tramitações'}, + ), + ] diff --git a/sapl/materia/models.py b/sapl/materia/models.py index ed4b1b77f..e4828d1a8 100644 --- a/sapl/materia/models.py +++ b/sapl/materia/models.py @@ -589,7 +589,6 @@ class Tramitacao(models.Model): class Meta: verbose_name = _('Tramitação') verbose_name_plural = _('Tramitações') - ordering = '-data_tramitacao', def __str__(self): return _('%(materia)s | %(status)s | %(data)s') % {