Skip to content

Commit

Permalink
Merge pull request #273 from nossas/hotfix/max-length-ocupation
Browse files Browse the repository at this point in the history
hotfix(votepeloclima): change max_length of ocupation in candidature form
  • Loading branch information
igr-santos authored Aug 29, 2024
2 parents 054b251 + dfb83ee commit 058b29c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion app/org_eleicoes/votepeloclima/candidature/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,12 @@ class TrackForm(EntangledModelFormMixin, DisabledMixin, forms.ModelForm):
education = forms.ChoiceField(
label="Escolaridade", required=False, choices=Education.choices
)
employment = forms.CharField(label="Ocupação", required=False)
employment = forms.CharField(
label="Ocupação",
required=False,
help_text="Até 150 caracteres.",
max_length=150
)
short_description = forms.CharField(
label="Minibio",
widget=forms.Textarea(attrs={"placeholder": "Escreva uma breve biografia"}),
Expand Down
4 changes: 2 additions & 2 deletions app/org_eleicoes/votepeloclima/candidature/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ class Candidature(models.Model):
color = models.CharField(max_length=30, verbose_name="Raça")
sexuality = models.CharField(max_length=30, null=True, blank=True, choices=Sexuality.choices, verbose_name="Sexualidade")
social_media = models.JSONField(blank=True, null=True, default=list, verbose_name="Redes Sociais")
education = models.CharField(max_length=50, null=True, blank=True, choices=Education.choices, verbose_name="Educação")
employment = models.CharField(max_length=50, null=True, blank=True, verbose_name="Ocupação")
education = models.CharField(max_length=80, null=True, blank=True, choices=Education.choices, verbose_name="Educação")
employment = models.CharField(max_length=150, null=True, blank=True, verbose_name="Ocupação")
short_description = models.TextField(verbose_name="Descrição Curta")
milestones = models.JSONField(blank=True, null=True, default=list, verbose_name="Marcos")
proposes = models.JSONField(blank=True, verbose_name="Propostas")
Expand Down

0 comments on commit 058b29c

Please sign in to comment.