90 prim_key = models.AutoField(primary_key = True) |
90 prim_key = models.AutoField(primary_key = True) |
91 id = models.CharField(max_length = 10, unique = True) |
91 id = models.CharField(max_length = 10, unique = True) |
92 title = models.CharField(max_length = 100, verbose_name = u"Title", help_text = u"Keep it simple and below 100 chars.") |
92 title = models.CharField(max_length = 100, verbose_name = u"Title", help_text = u"Keep it simple and below 100 chars.") |
93 desc = models.TextField(verbose_name = u"Description") |
93 desc = models.TextField(verbose_name = u"Description") |
94 status = models.CharField(max_length = 2, choices = STATUS_CHOICES, default = "UP") |
94 status = models.CharField(max_length = 2, choices = STATUS_CHOICES, default = "UP") |
95 tags_field = TagField(verbose_name = u"Tags") |
95 tags_field = TagField(verbose_name = u"Tags", help_text = u"Give comma seperated tags") |
96 |
96 |
97 credits = models.PositiveSmallIntegerField() |
97 credits = models.PositiveSmallIntegerField(help_text = u"No.of credits a user gets on completing the task") |
98 progress = models.PositiveSmallIntegerField(default = 0) |
98 progress = models.PositiveSmallIntegerField(default = 0) |
99 |
99 |
100 mentors = models.ManyToManyField(User, related_name = "%(class)s_mentors") |
100 mentors = models.ManyToManyField(User, related_name = "%(class)s_mentors") |
101 created_by = models.ForeignKey(User, related_name = "%(class)s_created_by") |
101 created_by = models.ForeignKey(User, related_name = "%(class)s_created_by") |
102 claimed_users = models.ManyToManyField(User, blank = True, related_name = "%(class)s_claimed_users") |
102 claimed_users = models.ManyToManyField(User, blank = True, related_name = "%(class)s_claimed_users") |