mirror of https://github.com/interlegis/sapl.git
Browse Source
- Integração de NormaJuridica com TextoArticulado - Integração de Materia Legislativa com TextoArticuladopull/98/head
LeandroRoberto
9 years ago
24 changed files with 676 additions and 377 deletions
@ -0,0 +1,30 @@ |
|||
# -*- coding: utf-8 -*- |
|||
from __future__ import unicode_literals |
|||
|
|||
import builtins |
|||
|
|||
from django.db import migrations, models |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
('contenttypes', '0002_remove_content_type_name'), |
|||
('compilacao', '0034_auto_20151226_1321'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.AddField( |
|||
model_name='textoarticulado', |
|||
name='content_type', |
|||
field=models.ForeignKey( |
|||
to='contenttypes.ContentType', default=142), |
|||
preserve_default=False, |
|||
), |
|||
migrations.AddField( |
|||
model_name='textoarticulado', |
|||
name='object_id', |
|||
field=models.PositiveIntegerField(default=1), |
|||
preserve_default=False, |
|||
), |
|||
] |
@ -0,0 +1,19 @@ |
|||
# -*- coding: utf-8 -*- |
|||
from __future__ import unicode_literals |
|||
|
|||
from django.db import migrations, models |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
('compilacao', '0035_auto_20151226_1349'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.AlterField( |
|||
model_name='textoarticulado', |
|||
name='content_type', |
|||
field=models.ForeignKey(default=None, null=True, to='contenttypes.ContentType', blank=True), |
|||
), |
|||
] |
@ -0,0 +1,19 @@ |
|||
# -*- coding: utf-8 -*- |
|||
from __future__ import unicode_literals |
|||
|
|||
from django.db import migrations, models |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
('compilacao', '0036_auto_20151226_1411'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.AlterField( |
|||
model_name='textoarticulado', |
|||
name='object_id', |
|||
field=models.PositiveIntegerField(blank=True, default=None, null=True), |
|||
), |
|||
] |
@ -0,0 +1,19 @@ |
|||
# -*- coding: utf-8 -*- |
|||
from __future__ import unicode_literals |
|||
|
|||
from django.db import migrations, models |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
('compilacao', '0037_auto_20151226_1414'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.AddField( |
|||
model_name='tipotextoarticulado', |
|||
name='model', |
|||
field=models.CharField(max_length=50, blank=True, default='', null=True, verbose_name='Modelagem Django'), |
|||
), |
|||
] |
@ -0,0 +1,19 @@ |
|||
# -*- coding: utf-8 -*- |
|||
from __future__ import unicode_literals |
|||
|
|||
from django.db import migrations, models |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
('compilacao', '0038_tipotextoarticulado_model'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.AlterField( |
|||
model_name='tipotextoarticulado', |
|||
name='model', |
|||
field=models.CharField(verbose_name='Modelagem Django', default='', blank=True, null=True, max_length=50, unique=True), |
|||
), |
|||
] |
@ -1,7 +1,15 @@ |
|||
{% extends "crud/detail.html" %} |
|||
{% load i18n %} |
|||
{% block actions %} {% endblock %} |
|||
{% block actions %} |
|||
<dl class="sub-nav right"> |
|||
<dd><a href="{% url 'ta_edit' object.pk %}" class="button">{% trans 'Editar' %}</a></dd> |
|||
<dd><a href="{% url 'ta_delete' object.pk %}" class="button alert">{% trans 'Excluir' %}</a></dd> |
|||
</dl> |
|||
{% endblock actions %} |
|||
{% block sections_nav %} |
|||
<dl class="sub-nav left"> |
|||
</dl> |
|||
<dl class="sub-nav left"> |
|||
<dd><a href="{% url 'normajuridica:detail' object.pk %}" class="button secondary">{% trans 'Início' %}</a></dd> |
|||
<dd><a href="{% url 'norma_ta' object.pk %}" class="button secondary">{% trans 'Texto' %}</a></dd> |
|||
</dl> |
|||
|
|||
{% endblock sections_nav %} |
|||
|
Loading…
Reference in new issue