Skip to content

Commit

Permalink
fix(models): add verbose_names
Browse files Browse the repository at this point in the history
  • Loading branch information
b1rger committed Apr 18, 2024
1 parent 6c10d8c commit dde81ba
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 2 deletions.
36 changes: 36 additions & 0 deletions apis_ontology/migrations/0034_alter_person_berufe_and_more.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Generated by Django 4.2.10 on 2024-04-17 15:37

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
(
"apis_ontology",
"0033_alter_person_adelspraedikat_alter_person_religionen_and_more",
),
]

operations = [
migrations.AlterField(
model_name="person",
name="berufe",
field=models.TextField(blank=True, verbose_name="Beruf(e)"),
),
migrations.AlterField(
model_name="person",
name="weitere_namensformen",
field=models.TextField(blank=True, verbose_name="Weitere Namensformen"),
),
migrations.AlterField(
model_name="versionperson",
name="berufe",
field=models.TextField(blank=True, verbose_name="Beruf(e)"),
),
migrations.AlterField(
model_name="versionperson",
name="weitere_namensformen",
field=models.TextField(blank=True, verbose_name="Weitere Namensformen"),
),
]
4 changes: 2 additions & 2 deletions apis_ontology/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,15 +154,15 @@ class Person(VersionMixin, LegacyStuffMixin, LegacyDateMixin, AbstractEntity):
# "Literatur"
literatur = models.TextField(blank=True)
# "Beruf(e)"
berufe = models.TextField(blank=True)
berufe = models.TextField(blank=True, verbose_name="Beruf(e)")
# "Sterbedatum"
sterbedatum = models.TextField(blank=True)
# "Adelsprädikat"
adelspraedikat = models.TextField(blank=True, verbose_name="Adelsprädikat")
# "Übersiedlung, Emigration, Remigration"
uebersiedlung_emigration = models.TextField(blank=True, verbose_name="Übersiedlung, Emigration, Remigration")
# "Weitere Namensformen"
weitere_namensformen = models.TextField(blank=True, verbose_name="Weiter Namensformen")
weitere_namensformen = models.TextField(blank=True, verbose_name="Weitere Namensformen")
# "Geburtsdatum"
geburtsdatum = models.TextField(blank=True)
# "Sterbeort"
Expand Down

0 comments on commit dde81ba

Please sign in to comment.