mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2025-05-20 09:20:46 +02:00
Add default value for KBItem vote and positive vote
This commit is contained in:
parent
d6602e96d7
commit
5b47370ec6
@ -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(
|
||||||
|
Loading…
Reference in New Issue
Block a user