mirror of https://github.com/interlegis/sapl.git
Browse Source
* Permite a adicao de partidos a composicao e a listagem deles * Permite a adicao de partidos a composicao e a listagem deles * Modifica o verbose name do partido de ComposicaoColigacao no models * Ordena as coligacoes * Impede que adicione um partido já existente na coligacaopull/473/head
eduardocalil
9 years ago
committed by
Edward
10 changed files with 129 additions and 18 deletions
@ -0,0 +1,21 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# Generated by Django 1.9.5 on 2016-05-18 14:36 |
|||
from __future__ import unicode_literals |
|||
|
|||
from django.db import migrations, models |
|||
import django.db.models.deletion |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
('parlamentares', '0018_auto_20160510_0943'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.AlterField( |
|||
model_name='composicaocoligacao', |
|||
name='partido', |
|||
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='parlamentares.Partido', verbose_name='Partido'), |
|||
), |
|||
] |
@ -0,0 +1,21 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# Generated by Django 1.9.5 on 2016-05-18 15:01 |
|||
from __future__ import unicode_literals |
|||
|
|||
from django.db import migrations, models |
|||
import django.db.models.deletion |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
('parlamentares', '0019_auto_20160518_1136'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.AlterField( |
|||
model_name='composicaocoligacao', |
|||
name='partido', |
|||
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='parlamentares.Partido', verbose_name='Partidos da Coligação'), |
|||
), |
|||
] |
@ -0,0 +1,10 @@ |
|||
{% extends "crud/detail.html" %} |
|||
{% load i18n %} |
|||
|
|||
{% block actions %} |
|||
<div class="actions btn-group pull-right" role="group"> |
|||
<a href="{% url 'parlamentares:composicaocoligacao_list' object.pk %}" class="btn btn-default">{% trans 'Ver Composição' %}</a> |
|||
<a href="{{ view.update_url }}" class="btn btn-default">{% trans 'Editar' %}</a> |
|||
<a href="{{ view.delete_url }}" class="btn btn-default">{% trans 'Excluir' %}</a> |
|||
</div> |
|||
{% endblock actions %} |
Loading…
Reference in new issue