Skip to content

Commit

Permalink
hotfix(votepeloclima): change max_length of ocupation in candidature …
Browse files Browse the repository at this point in the history
…form
  • Loading branch information
miguelzinh3 committed Aug 29, 2024
1 parent 3ffa27b commit f1be824
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
9 changes: 7 additions & 2 deletions 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 Expand Up @@ -592,7 +597,7 @@ class Meta:


register_form_list = [
("captcha", CaptchaForm),
# ("captcha", CaptchaForm),
("compromissos", AppointmentForm),
("informacoes-pessoais", PersonalForm),
("informacoes-de-candidatura", ApplicationForm),
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 f1be824

Please sign in to comment.