- first_name = models.CharField(max_length=255, blank=True)
- last_name = models.CharField(max_length=255, blank=True)
-
- name_de = models.CharField(max_length=255, blank=True)
- name_lt = models.CharField(max_length=255, blank=True)
-
- gender = models.CharField(max_length=255, blank=True)
- nationality = models.CharField(max_length=255, blank=True)
- year_of_death = models.SmallIntegerField(null=True, blank=True)
+ first_name = models.CharField(_("first name"), max_length=255, blank=True)
+ last_name = models.CharField(_("last name"), max_length=255, blank=True)
+
+ name_de = models.CharField(_("name (de)"), max_length=255, blank=True)
+ name_lt = models.CharField(_("name (lt)"), max_length=255, blank=True)
+
+ gender = models.CharField(_("gender"), max_length=255, blank=True)
+ nationality = models.CharField(_("nationality"), max_length=255, blank=True)
+ year_of_birth = models.SmallIntegerField(_("year of birth"), null=True, blank=True)
+ year_of_birth_inexact = models.BooleanField(_("inexact"), default=False)
+ year_of_birth_range = models.SmallIntegerField(_("year of birth, range end"), null=True, blank=True)
+ date_of_birth = models.DateField(_("date_of_birth"), null=True, blank=True)
+ place_of_birth = models.ForeignKey(
+ 'Place', models.PROTECT, null=True, blank=True,
+ verbose_name=_('place of birth'),
+ related_name='authors_born'
+ )
+ year_of_death = models.SmallIntegerField(_("year of death"), null=True, blank=True)
+ year_of_death_inexact = models.BooleanField(_("inexact"), default=False)
+ year_of_death_range = models.SmallIntegerField(_("year of death, range end"), null=True, blank=True)
+ date_of_death = models.DateField(_("date_of_death"), null=True, blank=True)
+ place_of_death = models.ForeignKey(
+ 'Place', models.PROTECT, null=True, blank=True,
+ verbose_name=_('place of death'),
+ related_name='authors_died'
+ )