string representation for models using titled mixin

This commit is contained in:
Jenny Danzmayr 2024-09-16 13:21:29 +02:00
parent b5fbe28146
commit 84eb346501

View file

@ -88,6 +88,9 @@ class TitledMixin(SerializableMixin, models.Model):
result['display'].append((language, title))
return result
def __str__(self):
return str(self.title)
class BoundsMixin(SerializableMixin, models.Model):
bottom = models.DecimalField(_('bottom coordinate'), max_digits=6, decimal_places=2)