mirror of https://github.com/interlegis/sigi.git
Sesóstris Vieira
1 year ago
10 changed files with 221 additions and 87 deletions
@ -0,0 +1,22 @@ |
|||
# Generated by Django 4.2.4 on 2023-12-05 13:13 |
|||
|
|||
from django.db import migrations, models |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
dependencies = [ |
|||
("espacos", "0003_reserva_data_pedido_reserva_num_processo_and_more"), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.AlterField( |
|||
model_name="reserva", |
|||
name="status", |
|||
field=models.CharField( |
|||
choices=[("A", "Ativo"), ("C", "Cancelado")], |
|||
default="A", |
|||
max_length=1, |
|||
verbose_name="status", |
|||
), |
|||
), |
|||
] |
@ -1,15 +0,0 @@ |
|||
{% extends "admin/change_form.html" %} |
|||
{% load i18n admin_urls %} |
|||
|
|||
{% block object-tools-items %} |
|||
{% if object_id %} |
|||
<li> |
|||
{% url opts|admin_urlname:'cancel' object_id|admin_urlquote as tool_url %} |
|||
<a href="{% add_preserved_filters tool_url %}"> |
|||
<i class="left material-icons" aria-hidden="true">cancel</i> |
|||
{% trans "Cancelar reserva" %} |
|||
</a> |
|||
</li> |
|||
{% endif %} |
|||
{{ block.super }} |
|||
{% endblock %} |
@ -0,0 +1,27 @@ |
|||
# Generated by Django 4.2.4 on 2023-12-01 12:16 |
|||
|
|||
from django.db import migrations, models |
|||
import django.db.models.deletion |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
dependencies = [ |
|||
("espacos", "0003_reserva_data_pedido_reserva_num_processo_and_more"), |
|||
( |
|||
"eventos", |
|||
"0054_equipe_emissao_passagens_equipe_qtde_diarias_and_more", |
|||
), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.AddField( |
|||
model_name="evento", |
|||
name="reserva", |
|||
field=models.OneToOneField( |
|||
blank=True, |
|||
null=True, |
|||
on_delete=django.db.models.deletion.PROTECT, |
|||
to="espacos.reserva", |
|||
), |
|||
), |
|||
] |
Loading…
Reference in new issue