Add default value for KBItem vote and positive vote

This commit is contained in:
Bruno Clermont 2011-02-03 17:15:03 -05:00
parent d6602e96d7
commit 5b47370ec6

View File

@ -806,11 +806,13 @@ class KBItem(models.Model):
votes = models.IntegerField( votes = models.IntegerField(
_('Votes'), _('Votes'),
help_text=_('Total number of votes cast for this item'), help_text=_('Total number of votes cast for this item'),
default=0,
) )
recommendations = models.IntegerField( recommendations = models.IntegerField(
_('Positive Votes'), _('Positive Votes'),
help_text=_('Number of votes for this item which were POSITIVE.'), help_text=_('Number of votes for this item which were POSITIVE.'),
default=0,
) )
last_updated = models.DateTimeField( last_updated = models.DateTimeField(