Skip to content

Commit

Permalink
feat(models): add str dunder method to Institution
Browse files Browse the repository at this point in the history
  • Loading branch information
b1rger committed Oct 24, 2024
1 parent 7550bad commit b406906
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apis_instance_nsvis/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ class Institution(AbstractEntity, VersionMixin, MongoDbDataMixin):
""" Zeitschriften, Verlage, Agenturen, Partei + Vorfeldorganisation """
label = models.CharField(blank=True, default="", max_length=4096, verbose_name=_("Label"))

def __str__(self):
return self.label


class AddressData(AbstractEntity, VersionMixin):
postal = models.TextField(blank=True, max_length=32, verbose_name=_("Postal"))
Expand Down

0 comments on commit b406906

Please sign in to comment.