some more options / features for I18nField
This commit is contained in:
parent
fa450084dc
commit
6cfd8eb0e3
3 changed files with 19 additions and 9 deletions
|
@ -47,7 +47,7 @@ class SerializableMixin(models.Model):
|
|||
|
||||
|
||||
class TitledMixin(SerializableMixin, models.Model):
|
||||
title = I18nField(plural_name='titles', fallback_any=True, fallback_value='{model_name} {pk}')
|
||||
title = I18nField(_('Title'), plural_name='titles', blank=True, fallback_any=True, fallback_value='{model} {pk}')
|
||||
|
||||
class Meta:
|
||||
abstract = True
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue