Skip to content

Commit

Permalink
Merge pull request #146 from nossas/feat/refactor-candidates-list-des…
Browse files Browse the repository at this point in the history
…cription

Feat: Refatora CharField para TextField na description da Listagem de Candidaturas
  • Loading branch information
miguelzinh3 authored Nov 27, 2023
2 parents dd52517 + 8b19a59 commit 274c515
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# 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'),
),
]
2 changes: 1 addition & 1 deletion app/eleicao/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.CharField("Descrição", max_length=120, blank=True, null=True)
description = models.TextField("Descrição", blank=True, null=True)

class EleicaoCarousel(CMSPlugin):
title = models.CharField("Título", max_length=120)
Expand Down

0 comments on commit 274c515

Please sign in to comment.