Browse Source

HOT-FIX: Remove warning de ordering em MateriaLegislativa (#2939)

pull/2944/head
Cesar Augusto de Carvalho 5 years ago
committed by Edward
parent
commit
ce076ee094
  1. 19
      sapl/materia/migrations/0055_auto_20190816_0943.py
  2. 2
      sapl/materia/models.py

19
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'},
),
]

2
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):

Loading…
Cancel
Save