feat: Add verbose names
This commit is contained in:
parent
294a2d7e62
commit
505b2255cc
@ -332,12 +332,13 @@ class Text(models.Model):
|
|||||||
Base class to store markdown content
|
Base class to store markdown content
|
||||||
"""
|
"""
|
||||||
title = models.CharField(max_length=100)
|
title = models.CharField(max_length=100)
|
||||||
content = models.TextField()
|
content = models.TextField(verbose_name="Inhalt")
|
||||||
language = models.OneToOneField(Language, on_delete=models.PROTECT)
|
language = models.OneToOneField(Language, verbose_name="Sprache", on_delete=models.PROTECT)
|
||||||
text_code = models.CharField(max_length=24, verbose_name="text_code", blank=True)
|
text_code = models.CharField(max_length=24, verbose_name="Text code", blank=True)
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
verbose_name_plural = "Markdown content"
|
verbose_name = "Text"
|
||||||
|
verbose_name_plural = "Texte"
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return self.title
|
return self.title
|
||||||
|
Loading…
Reference in New Issue
Block a user