-class Author(models.Model):
- name = models.CharField(max_length=100,
- help_text="Name of the author")
+class BaseTag(models.Model):
+ tag = models.CharField(max_length=100, unique=True)
+
+ def __unicode__(self):
+ return self.tag
+
+ class Meta(object):
+ abstract = True
+
+class AuthorTag(BaseTag): pass
+class WorkTag(BaseTag): pass
+class QuoteTag(BaseTag): pass
+
+class CommonData(models.Model):
+ creation_date = models.DateTimeField(auto_now_add=True)
+ last_modification = models.DateTimeField(auto_now=True)
+