Skip to content

Commit

Permalink
fix(models): update TextChoices value
Browse files Browse the repository at this point in the history
Change one forgotten original English value of
TemporalFrequency TextChoices to its German label.
  • Loading branch information
koeaw committed Sep 19, 2024
1 parent 705fae8 commit 3910a4a
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Generated by Django 4.2.15 on 2024-09-19 09:24

import django.contrib.postgres.fields
from django.db import migrations, models


class Migration(migrations.Migration):
dependencies = [
("apis_ontology", "0085_alter_versionarchive_options_and_more"),
]

operations = [
migrations.AlterField(
model_name="versionwork",
name="temporal_frequency",
field=django.contrib.postgres.fields.ArrayField(
base_field=models.CharField(
choices=[
("singulativ", "singulativ"),
("repetitiv", "repetitiv"),
("iterativ", "iterativ"),
],
max_length=255,
),
blank=True,
default=list,
size=None,
verbose_name="Frequenz",
),
),
migrations.AlterField(
model_name="work",
name="temporal_frequency",
field=django.contrib.postgres.fields.ArrayField(
base_field=models.CharField(
choices=[
("singulativ", "singulativ"),
("repetitiv", "repetitiv"),
("iterativ", "iterativ"),
],
max_length=255,
),
blank=True,
default=list,
size=None,
verbose_name="Frequenz",
),
),
]
2 changes: 1 addition & 1 deletion apis_ontology/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ class TemporalDuration(models.TextChoices):
PAUSE = "Pause", _("Pause")

class TemporalFrequency(models.TextChoices):
SINGULATIVE = "singulative", _("singulativ")
SINGULATIVE = "singulativ", _("singulativ")
REPEATING = "repetitiv", _("repetitiv")
ITERATIVE = "iterativ", _("iterativ")

Expand Down

0 comments on commit 3910a4a

Please sign in to comment.