Skip to content

Commit

Permalink
hotfix(vote): change sexuality and race/color label
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelzinh3 committed Sep 5, 2024
1 parent 7b0e1b9 commit ecdd5e9
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 3 deletions.
3 changes: 1 addition & 2 deletions app/org_eleicoes/votepeloclima/candidature/choices.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,9 @@ class Sexuality(models.TextChoices):
empty = "", "Selecione uma opção"
heterossexual = "heterossexual", "Heterossexual"
pansexual = "pansexual", "Pansexual"
assexual = "assexual", "Assexual"
bissexual = "bissexual", "Bissexual"
gay = "gay", "Homossexual"
queer = "queer", "Queer"
gay = "gay", "Gay"
lesbica = "lesbica", "Lésbica"
nao_declarada = "nao_declarada", "Não declarada"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ class ProfileForm(EntangledModelFormMixin, DisabledMixin, forms.ModelForm):
video = VideoField(label="Vídeo", required=False, help_text="Tamanho máximo 50mb.")
photo = ImageField(label="Foto", help_text="Tipo de imagem JPEG ou PNG. Tamanho máximo 10mb.")
gender = forms.ChoiceField(label="Gênero", choices=Gender.choices)
color = forms.ChoiceField(label="Raça", choices=Color.choices)
color = forms.ChoiceField(label="Cor ou Raça", choices=Color.choices)
sexuality = forms.ChoiceField(
label="Sexualidade", required=False, choices=Sexuality.choices
)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 4.2 on 2024-09-05 23:18

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('candidature', '0019_alter_candidature_intended_position'),
]

operations = [
migrations.AlterField(
model_name='candidature',
name='sexuality',
field=models.CharField(blank=True, choices=[('', 'Selecione uma opção'), ('heterossexual', 'Heterossexual'), ('pansexual', 'Pansexual'), ('bissexual', 'Bissexual'), ('gay', 'Homossexual'), ('queer', 'Queer'), ('lesbica', 'Lésbica'), ('nao_declarada', 'Não declarada')], max_length=30, null=True, verbose_name='Sexualidade'),
),
]

0 comments on commit ecdd5e9

Please sign in to comment.