Browse Source

HOT-FIX: Fixes #3617

pull/3623/head
Edward Ribeiro 2 years ago
parent
commit
eb81706371
  1. 17
      sapl/comissoes/migrations/0029_auto_20221019_2041.py
  2. 2
      sapl/comissoes/models.py
  3. 1
      sapl/comissoes/views.py

17
sapl/comissoes/migrations/0029_auto_20221019_2041.py

@ -0,0 +1,17 @@
# Generated by Django 2.2.28 on 2022-10-19 23:41
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('comissoes', '0028_auto_20220807_2257'),
]
operations = [
migrations.AlterModelOptions(
name='reuniao',
options={'ordering': ('-data', '-nome'), 'verbose_name': 'Reunião de Comissão', 'verbose_name_plural': 'Reuniões de Comissão'},
),
]

2
sapl/comissoes/models.py

@ -258,7 +258,7 @@ class Reuniao(models.Model):
class Meta: class Meta:
verbose_name = _('Reunião de Comissão') verbose_name = _('Reunião de Comissão')
verbose_name_plural = _('Reuniões de Comissão') verbose_name_plural = _('Reuniões de Comissão')
ordering = ('numero', 'comissao') ordering = ('-data', '-nome')
def __str__(self): def __str__(self):
return self.nome return self.nome

1
sapl/comissoes/views.py

@ -212,7 +212,6 @@ class ReuniaoCrud(MasterDetailCrud):
class BaseMixin(MasterDetailCrud.BaseMixin): class BaseMixin(MasterDetailCrud.BaseMixin):
list_field_names = ['data', 'nome', 'tema', 'upload_ata'] list_field_names = ['data', 'nome', 'tema', 'upload_ata']
ordering = '-data'
class DetailView(MasterDetailCrud.DetailView): class DetailView(MasterDetailCrud.DetailView):
template_name = "comissoes/reuniao_detail.html" template_name = "comissoes/reuniao_detail.html"

Loading…
Cancel
Save