- "Notes about the author; not displayed on \
- the public interface",)
- tags = models.ManyToManyField(Tag, blank=True)
+ "Notes about the entry; not displayed on \
+ the public interface")
+
+ nb_display = models.BigIntegerField(default=0)
+ def incr_display(self):
+ self.nb_display = models.F('nb_display') + 1
+ self.save()
+
+ class Meta(object):
+ abstract = True
+
+class Author(CommonData):
+ name = models.CharField(max_length=100,
+ help_text="Name of the author",
+ unique=True)
+
+ tags = models.ManyToManyField(AuthorTag, blank=True,
+ help_text='Not implemented yet')