Browse Source

HOT-FIX: exclusao de mat ref em pauta reuniao #3069

pull/3074/head
João Rodrigues 5 years ago
parent
commit
04ad173554
  1. 21
      sapl/materia/migrations/0063_auto_20191220_1351.py
  2. 1
      sapl/materia/models.py

21
sapl/materia/migrations/0063_auto_20191220_1351.py

@ -0,0 +1,21 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.20 on 2019-12-20 16:51
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('materia', '0062_merge_20191209_1531'),
]
operations = [
migrations.AlterField(
model_name='pautareuniao',
name='materia',
field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='materia_set', to='materia.MateriaLegislativa', verbose_name='Matéria'),
),
]

1
sapl/materia/models.py

@ -433,6 +433,7 @@ class PautaReuniao(models.Model):
)
materia = models.ForeignKey(
MateriaLegislativa, related_name='materia_set',
on_delete=models.PROTECT,
verbose_name=_('Matéria')
)

Loading…
Cancel
Save