+ tags = models.ManyToManyField(AuthorTag, blank=True,
+ help_text='Not implemented yet')
+
+ birth_date = models.DateField(blank=True, null=True,
+ help_text="Date of birth")
+ death_date = models.DateField(blank=True, null=True,
+ help_text="Date of death (leave blank \
+ if still alive!)")
+
+ def __str__(self):
+ return self.name
+
+# class DatePrecision(models.CharField):
+# DAY = "D"
+# MONTH = "M"
+# YEAR = "Y"
+# DECADE = "X"
+# CENTURY = "C"
+# UNKNOWN = "?"
+# PRECISION_CHOICES = [
+# (DAY, "Day"),
+# (MONTH, "Month"),
+# (YEAR, "Year"),
+# (DECADE, "Decade"),
+# (CENTURY, "Century"),
+# (UNKNOWN, "Unknown"),
+# ]
+# def __init__(self, **kwargs):
+# models.CharField(max_length=1, choices=self.PRECISION_CHOICES,
+# default=self.DAY, **kwargs)
+
+class Work(CommonData):
+ name = models.CharField(max_length=100,
+ help_text="Name of the context for the quote \
+ (title of the work or speech it appears in)",
+ unique=True)