remove subtitle vom Location and fix title

This commit is contained in:
Laura Klünder 2017-05-12 13:10:48 +02:00
parent d5ce495cdc
commit 1adf59af00

View file

@ -103,11 +103,8 @@ class Location(LocationSlug, EditorFormMixin, models.Model):
lang = get_language()
if lang in self.titles:
return self.titles[lang]
return next(iter(self.titles.values())) if self.titles else (self._meta.verbose_name+' '+(self.slug or self.id))
@property
def subtitle(self):
return self._meta.verbose_name
return (next(iter(self.titles.values())) if self.titles else
(self._meta.verbose_name+' '+(self.slug or str(self.id))))
class SpecificLocation(Location, models.Model):