28 NOTIFY_CHOICES = ( |
28 NOTIFY_CHOICES = ( |
29 ("MT", "Add Reviewer"), |
29 ("MT", "Add Reviewer"), |
30 ("DV", "Developer"), |
30 ("DV", "Developer"), |
31 ("MG", "Manager"), |
31 ("MG", "Manager"), |
32 ("AD", "Admin"), |
32 ("AD", "Admin"), |
33 ("PY", "Assign credits"), |
33 ("PY", "Assign pynts"), |
34 ("CM", "Task completed"), |
34 ("CM", "Task completed"), |
35 ("CD", "Task closed"), |
35 ("CD", "Task closed"), |
36 ("DL", "Task deleted"), |
36 ("DL", "Task deleted"), |
37 ("NU", "New User"), |
37 ("NU", "New User"), |
38 ("NT", "New Reviewer"), |
38 ("NT", "New Reviewer"), |
68 |
68 |
69 user = models.ForeignKey(User, unique = True) |
69 user = models.ForeignKey(User, unique = True) |
70 dob = models.DateField(verbose_name = u"Date of Birth", help_text = "YYYY-MM-DD") |
70 dob = models.DateField(verbose_name = u"Date of Birth", help_text = "YYYY-MM-DD") |
71 gender = models.CharField(max_length = 1, choices = GENDER_CHOICES) |
71 gender = models.CharField(max_length = 1, choices = GENDER_CHOICES) |
72 rights = models.CharField(max_length = 2, choices = RIGHTS_CHOICES, default = u"CT") |
72 rights = models.CharField(max_length = 2, choices = RIGHTS_CHOICES, default = u"CT") |
73 credits = models.PositiveSmallIntegerField(default = 0) |
73 pynts = models.PositiveSmallIntegerField(default = 0) |
74 |
74 |
75 aboutme = models.TextField(blank = True) |
75 aboutme = models.TextField(blank = True) |
76 foss_comm = TagField(verbose_name="FOSS Communities") |
76 foss_comm = TagField(verbose_name="FOSS Communities") |
77 phonenum = models.CharField(max_length = 15, blank = True, verbose_name = u"Phone Number") |
77 phonenum = models.CharField(max_length = 15, blank = True, verbose_name = u"Phone Number") |
78 homepage = models.URLField(blank = True, verbose_name = u"Homepage/Blog") |
78 homepage = models.URLField(blank = True, verbose_name = u"Homepage/Blog") |
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", help_text = u"Give comma seperated tags") |
95 tags_field = TagField(verbose_name = u"Tags", help_text = u"Give comma seperated tags") |
96 |
96 |
97 credits = models.PositiveSmallIntegerField(help_text = u"No.of credits a user gets on completing the task") |
97 pynts = models.PositiveSmallIntegerField(help_text = u"No.of pynts a user gets on completing the task") |
98 progress = models.PositiveSmallIntegerField(default = 0) |
98 progress = models.PositiveSmallIntegerField(default = 0) |
99 |
99 |
100 reviewers = models.ManyToManyField(User, related_name = "%(class)s_reviewers") |
100 reviewers = models.ManyToManyField(User, related_name = "%(class)s_reviewers") |
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") |