From 505b2255ccfa3f70b057421f8e63295533f39eda Mon Sep 17 00:00:00 2001 From: moanos Date: Sun, 14 Apr 2024 13:37:32 +0200 Subject: [PATCH] feat: Add verbose names --- src/fellchensammlung/models.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/fellchensammlung/models.py b/src/fellchensammlung/models.py index 5b3cc1f..bf16199 100644 --- a/src/fellchensammlung/models.py +++ b/src/fellchensammlung/models.py @@ -332,12 +332,13 @@ class Text(models.Model): Base class to store markdown content """ title = models.CharField(max_length=100) - content = models.TextField() - language = models.OneToOneField(Language, on_delete=models.PROTECT) - text_code = models.CharField(max_length=24, verbose_name="text_code", blank=True) + content = models.TextField(verbose_name="Inhalt") + language = models.OneToOneField(Language, verbose_name="Sprache", on_delete=models.PROTECT) + text_code = models.CharField(max_length=24, verbose_name="Text code", blank=True) class Meta: - verbose_name_plural = "Markdown content" + verbose_name = "Text" + verbose_name_plural = "Texte" def __str__(self): return self.title