~dylanmccall/harvest/gsoc-client-stuff

« back to all changes in this revision

Viewing changes to harvest/opportunities/models.py

  • Committer: Daniel Holbach
  • Date: 2010-03-08 16:32:02 UTC
  • Revision ID: daniel.holbach@canonical.com-20100308163202-aqoeqwxq7dbtw3ec
readd Unknown experience choice, make comment optional, rename 'reviewed' to 'irrelevant'

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
PACKAGE_GREEN_THRESHOLD = 5
5
5
PACKAGE_RED_THRESHOLD = 20
6
6
 
7
 
# This is not a valid choice, but it's the default (initial) value.
8
 
#   (0, 'Unknown'),
9
7
EXPERIENCE_CHOICES = (
 
8
    (0, '---'),
10
9
    (1, 'Easy'),
11
10
    (2, 'Medium'),
12
11
    (3, 'Hard'),
84
83
    url = models.URLField(_("URL"), max_length=350)
85
84
    last_updated = models.DateTimeField(_("Last Updated"), null=True)
86
85
    since = models.DateTimeField(_("Since"), help_text=_("On the list since"), null=True)
87
 
    reviewed = models.BooleanField(_("Reviewed"), default=False)
 
86
    reviewed = models.BooleanField(_("Irrelevant"), default=False, blank=True)
88
87
    sourcepackage = models.ForeignKey(SourcePackage)
89
88
    opportunitylist = models.ForeignKey(OpportunityList)
90
 
    comment = models.TextField(_("Comment"), null=True)
 
89
    comment = models.TextField(_("Comment"), blank=True)
91
90
    valid = models.BooleanField(_("Valid"), default=True)
92
 
    experience = models.IntegerField(_("Required Experience"), choices=EXPERIENCE_CHOICES, null=True,
 
91
    experience = models.IntegerField(_("Required Experience"), choices=EXPERIENCE_CHOICES, default=0,
93
92
                                     help_text=_("Level of experience required for this specific opportunity."))
94
93
 
95
94
    class Meta: