From af418d5809cb770919cc4c011d726e3577e990f9 Mon Sep 17 00:00:00 2001 From: VictorFabreF Date: Tue, 30 Jan 2018 14:26:52 -0200 Subject: [PATCH] =?UTF-8?q?HOT-FIX:=20ordena=20n=C3=ADvel=20de=20instru?= =?UTF-8?q?=C3=A7=C3=A3o=20lexicograficamente?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../migrations/0013_auto_20180130_1425.py | 19 +++++++++++++++++++ sapl/parlamentares/models.py | 1 + 2 files changed, 20 insertions(+) create mode 100644 sapl/parlamentares/migrations/0013_auto_20180130_1425.py 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')