From ce076ee094292992c913ba7718aa2150ae92e5f4 Mon Sep 17 00:00:00 2001 From: Cesar Augusto de Carvalho Date: Fri, 16 Aug 2019 12:13:18 -0300 Subject: [PATCH] HOT-FIX: Remove warning de ordering em MateriaLegislativa (#2939) --- .../migrations/0055_auto_20190816_0943.py | 19 +++++++++++++++++++ sapl/materia/models.py | 2 +- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 sapl/materia/migrations/0055_auto_20190816_0943.py diff --git a/sapl/materia/migrations/0055_auto_20190816_0943.py b/sapl/materia/migrations/0055_auto_20190816_0943.py new file mode 100644 index 000000000..2f95add3c --- /dev/null +++ b/sapl/materia/migrations/0055_auto_20190816_0943.py @@ -0,0 +1,19 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.11.20 on 2019-08-16 12:43 +from __future__ import unicode_literals + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('materia', '0054_merge_20190802_1112'), + ] + + operations = [ + migrations.AlterModelOptions( + name='materialegislativa', + options={'ordering': ['-id'], 'permissions': (('can_access_impressos', 'Can access impressos'),), 'verbose_name': 'Matéria Legislativa', 'verbose_name_plural': 'Matérias Legislativas'}, + ), + ] diff --git a/sapl/materia/models.py b/sapl/materia/models.py index 219b38971..4d4aee1c8 100644 --- a/sapl/materia/models.py +++ b/sapl/materia/models.py @@ -299,7 +299,7 @@ class MateriaLegislativa(models.Model): verbose_name = _('Matéria Legislativa') verbose_name_plural = _('Matérias Legislativas') unique_together = (("tipo", "numero", "ano"),) - + ordering = ['-id'] permissions = (("can_access_impressos", "Can access impressos"),) def __str__(self):