add I18nField and replace the title JSONField with it
This commit is contained in:
parent
968fc3885d
commit
f94be40470
4 changed files with 174 additions and 18 deletions
|
@ -117,12 +117,6 @@ class Location(LocationSlug, AccessRestrictionMixin, TitledMixin, models.Model):
|
|||
return code+':'+str(self.id)
|
||||
return self.slug
|
||||
|
||||
@property
|
||||
def title(self):
|
||||
if not self.titles and self.slug:
|
||||
return self._meta.verbose_name + ' ' + self.slug
|
||||
return super().title
|
||||
|
||||
@property
|
||||
def subtitle(self):
|
||||
return ''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue