From 52d051ebb47c3e7458776865860476034cdc5e63 Mon Sep 17 00:00:00 2001 From: Carlos Vega <carlos.vega@uni.lu> Date: Wed, 10 Oct 2018 11:41:55 +0200 Subject: [PATCH] added constant per type of availability --- smash/web/models/constants.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/smash/web/models/constants.py b/smash/web/models/constants.py index 60e0c5aa..3257a992 100644 --- a/smash/web/models/constants.py +++ b/smash/web/models/constants.py @@ -78,9 +78,12 @@ WEEKDAY_CHOICES = ( (SUNDAY_AS_DAY_OF_WEEK, 'SUNDAY'), ) +AVAILABILITY_HOLIDAY = 'H' +AVAILABILITY_EXTRA = 'X' + AVAILABILITY_CHOICES = ( - ('H', 'Holiday'), - ('X', 'Extra Availability'), + (AVAILABILITY_HOLIDAY, 'Holiday'), + (AVAILABILITY_EXTRA, 'Extra Availability'), ) REDCAP_TOKEN_CONFIGURATION_TYPE = "REDCAP_TOKEN_CONFIGURATION_TYPE" -- GitLab