diff --git a/smash/web/models/holiday.py b/smash/web/models/holiday.py index f18d5a37a6b42234fd3b8bfdc8297e729302ae9d..927daa54340fd643e7ddd81a8f79e701238dbd7e 100644 --- a/smash/web/models/holiday.py +++ b/smash/web/models/holiday.py @@ -1,7 +1,7 @@ # coding=utf-8 from django.db import models -from constants import AVAILABILITY_CHOICES +from constants import AVAILABILITY_CHOICES, AVAILABILITY_HOLIDAY class Holiday(models.Model): class Meta: @@ -22,7 +22,7 @@ class Holiday(models.Model): verbose_name='Comments' ) - kind = models.CharField(max_length=1, choices=AVAILABILITY_CHOICES, default='H', help_text='Defines the kind of availability. Either Holiday or Extra Availability.') + kind = models.CharField(max_length=1, choices=AVAILABILITY_CHOICES, default=AVAILABILITY_HOLIDAY, help_text='Defines the kind of availability. Either Holiday or Extra Availability.') def __str__(self): return "%s %s" % (self.person.first_name, self.person.last_name)