Browse Source

Merge pull request #400 from interlegis/398-filiacao-ordem-decrescente

398 filiacao ordem decrescente
pull/403/head
Edward 9 years ago
parent
commit
c88f35f12f
  1. 2
      materia/migrations/0031_merge.py
  2. 1
      parlamentares/models.py

2
materia/migrations/0031_merge.py

@ -8,8 +8,8 @@ from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('materia', '0030_auto_20160502_1630'),
('materia', '0030_auto_20160429_1349'),
('materia', '0030_auto_20160502_1630'),
]
operations = [

1
parlamentares/models.py

@ -306,6 +306,7 @@ class Filiacao(models.Model):
class Meta:
verbose_name = _('Filiação')
verbose_name_plural = _('Filiações')
ordering = ('parlamentar', '-data', '-data_desfiliacao')
def __str__(self):
return _('%(parlamentar)s - %(partido)s') % {

Loading…
Cancel
Save