diff --git a/sapl/parlamentares/migrations/0013_auto_20180130_1425.py b/sapl/parlamentares/migrations/0013_auto_20180130_1425.py new file mode 100644 index 000000000..f1c3de09a --- /dev/null +++ b/sapl/parlamentares/migrations/0013_auto_20180130_1425.py @@ -0,0 +1,19 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9.13 on 2018-01-30 16:25 +from __future__ import unicode_literals + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('parlamentares', '0012_auto_20171020_1045'), + ] + + operations = [ + migrations.AlterModelOptions( + name='nivelinstrucao', + options={'ordering': ['descricao'], 'verbose_name': 'Nível Instrução', 'verbose_name_plural': 'Níveis Instrução'}, + ), + ] diff --git a/sapl/parlamentares/models.py b/sapl/parlamentares/models.py index 2162c73b6..2be2b79c7 100644 --- a/sapl/parlamentares/models.py +++ b/sapl/parlamentares/models.py @@ -175,6 +175,7 @@ class NivelInstrucao(models.Model): max_length=50, verbose_name=_('Nível de Instrução')) class Meta: + ordering = ['descricao'] verbose_name = _('Nível Instrução') verbose_name_plural = _('Níveis Instrução')