author | Nishanth Amuluru <nishanth@fossee.in> |
Sat, 08 Jan 2011 22:05:45 +0530 | |
changeset 331 | 54152e4f5cd7 |
parent 330 | b92347d24557 |
child 332 | 385702a0bbde |
--- a/pytask/taskapp/models.py Sat Jan 08 21:57:19 2011 +0530 +++ b/pytask/taskapp/models.py Sat Jan 08 22:05:45 2011 +0530 @@ -131,6 +131,7 @@ class TextBook(models.Model): uniq_key = models.CharField(max_length = 10, unique = True) + chapters = models.ManyToManyField(Task, related_name="%(class)s_chapters") tags_field = TagField(verbose_name="Tags") created_by = models.ForeignKey(User, related_name = "%(class)s_created_by")