string representation for models using titled mixin
This commit is contained in:
parent
b5fbe28146
commit
84eb346501
1 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue