From 8d58cac6a31d763166774df4787591e3be0c37a2 Mon Sep 17 00:00:00 2001
From: Carlos Vega <carlos.vega@uni.lu>
Date: Wed, 3 Oct 2018 14:58:53 +0200
Subject: [PATCH] changed model to add different kinds of availabilities. Issue
 #241

---
 smash/web/models/holiday.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/smash/web/models/holiday.py b/smash/web/models/holiday.py
index 01cceaea..f18d5a37 100644
--- a/smash/web/models/holiday.py
+++ b/smash/web/models/holiday.py
@@ -1,6 +1,7 @@
 # coding=utf-8
 from django.db import models
 
+from constants import AVAILABILITY_CHOICES
 
 class Holiday(models.Model):
     class Meta:
@@ -21,6 +22,8 @@ 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.')
+
     def __str__(self):
         return "%s %s" % (self.person.first_name, self.person.last_name)
 
-- 
GitLab