Skip to content
Snippets Groups Projects
Commit 62b6894c authored by Tom Teichler's avatar Tom Teichler :beers:
Browse files

Add missing __str__ methods

parent 1d045dfb
No related branches found
No related tags found
1 merge request!316Resolve "Add missing __str__ methods"
Pipeline #2829 passed
......@@ -300,6 +300,9 @@ class AdditionalField(ExtensibleModel):
verbose_name=_("Type of field"), choices=FIELD_CHOICES, max_length=50
)
def __str__(self) -> str:
return self.title
class Meta:
verbose_name = _("Addtitional field for groups")
verbose_name_plural = _("Addtitional fields for groups")
......@@ -718,6 +721,9 @@ class GroupType(ExtensibleModel):
name = models.CharField(verbose_name=_("Title of type"), max_length=50)
description = models.CharField(verbose_name=_("Description"), max_length=500)
def __str__(self) -> str:
return self.name
class Meta:
verbose_name = _("Group type")
verbose_name_plural = _("Group types")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment