diff --git a/app/eleicao/cms_plugins.py b/app/eleicao/cms_plugins.py index 0f467bd8..12fc7d78 100644 --- a/app/eleicao/cms_plugins.py +++ b/app/eleicao/cms_plugins.py @@ -103,6 +103,7 @@ def render(self, context, instance, placeholder): del form.fields["uf"] del form.fields["city"] + ctx["form"] = form page_number = request.GET.get("page", 1) @@ -113,8 +114,6 @@ def render(self, context, instance, placeholder): ctx["is_paginated"] = p.count > 1 ctx["page_obj"] = page_obj ctx["object_list"] = page_obj.object_list - - ctx.update({"title": instance.title, "description": instance.description}) return ctx diff --git a/app/eleicao/migrations/0019_auto_20231123_0544.py b/app/eleicao/migrations/0019_auto_20231123_0544.py deleted file mode 100644 index ace73e43..00000000 --- a/app/eleicao/migrations/0019_auto_20231123_0544.py +++ /dev/null @@ -1,23 +0,0 @@ -# Generated by Django 3.2 on 2023-11-23 05:44 - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('eleicao', '0018_eleicaocandidatelist'), - ] - - operations = [ - migrations.AddField( - model_name='eleicaocandidatelist', - name='description', - field=models.CharField(blank=True, max_length=120, null=True, verbose_name='Descrição'), - ), - migrations.AddField( - model_name='eleicaocandidatelist', - name='title', - field=models.CharField(blank=True, max_length=120, null=True, verbose_name='Título'), - ), - ] diff --git a/app/eleicao/models.py b/app/eleicao/models.py index 59d8b591..72aa7831 100644 --- a/app/eleicao/models.py +++ b/app/eleicao/models.py @@ -165,8 +165,6 @@ class Meta: class EleicaoCandidateList(CMSPlugin): - title = models.CharField("Título", max_length=120, blank=True, null=True) - description = models.CharField("Descrição", max_length=120, blank=True, null=True) city = models.CharField("Cidade", max_length=120, blank=True, null=True) state = models.CharField("Estado", max_length=2, blank=True, null=True, choices=lazy(get_states, list)()) diff --git a/app/eleicao/static/images/eleicao/teia-de-criadores.png b/app/eleicao/static/images/eleicao/teia-de-criadores.png deleted file mode 100644 index 38af47b2..00000000 Binary files a/app/eleicao/static/images/eleicao/teia-de-criadores.png and /dev/null differ diff --git a/app/eleicao/templates/eleicao/plugins/candidate_list.html b/app/eleicao/templates/eleicao/plugins/candidate_list.html index b7021105..437b0e4f 100644 --- a/app/eleicao/templates/eleicao/plugins/candidate_list.html +++ b/app/eleicao/templates/eleicao/plugins/candidate_list.html @@ -7,8 +7,8 @@
-

{{ title }}

-

{{ description }}

+

Conheça as candidaturas

+

As candidatas e candidatos abaixo assumiram o compromisso com o Estatuto da Criança e do Adolescente ao se cadastrar na plataforma.

diff --git a/app/eleicao/templates/eleicao/plugins/footer.html b/app/eleicao/templates/eleicao/plugins/footer.html index 78735af5..93199ce6 100644 --- a/app/eleicao/templates/eleicao/plugins/footer.html +++ b/app/eleicao/templates/eleicao/plugins/footer.html @@ -30,8 +30,6 @@

Realização

alt="Alana" /> Vladimir Herzog - Teia de Criadores Minha Manaus