From 5201823475c4678bc5abfe54eb7ba0fcd9bc3bd2 Mon Sep 17 00:00:00 2001 From: miguel soares <121839261+miguelzinh3@users.noreply.github.com> Date: Mon, 27 Nov 2023 19:44:25 -0300 Subject: [PATCH] Revert "Feat: Refatora CharField para TextField na description da Listagem de Candidaturas" --- ...0_alter_eleicaocandidatelist_description.py | 18 ------------------ app/eleicao/models.py | 2 +- 2 files changed, 1 insertion(+), 19 deletions(-) delete mode 100644 app/eleicao/migrations/0020_alter_eleicaocandidatelist_description.py diff --git a/app/eleicao/migrations/0020_alter_eleicaocandidatelist_description.py b/app/eleicao/migrations/0020_alter_eleicaocandidatelist_description.py deleted file mode 100644 index d9aea3fc..00000000 --- a/app/eleicao/migrations/0020_alter_eleicaocandidatelist_description.py +++ /dev/null @@ -1,18 +0,0 @@ -# Generated by Django 3.2 on 2023-11-27 20:53 - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('eleicao', '0019_auto_20231123_2222'), - ] - - operations = [ - migrations.AlterField( - model_name='eleicaocandidatelist', - name='description', - field=models.TextField(blank=True, null=True, verbose_name='Descrição'), - ), - ] diff --git a/app/eleicao/models.py b/app/eleicao/models.py index ae4c93ae..f978bf16 100644 --- a/app/eleicao/models.py +++ b/app/eleicao/models.py @@ -169,7 +169,7 @@ class EleicaoCandidateList(CMSPlugin): state = models.CharField("Estado", max_length=2, blank=True, null=True, choices=lazy(get_states, list)()) # title = models.CharField("Título", max_length=120, blank=True, null=True) - description = models.TextField("Descrição", blank=True, null=True) + description = models.CharField("Descrição", max_length=120, blank=True, null=True) class EleicaoCarousel(CMSPlugin): title = models.CharField("Título", max_length=120)