"""This module contains the constants for the ``workshops`` app"""

from extended_choices import Choices

from django.utils.translation import ugettext_lazy as _


# Limitation of characters
QUESTION_TITLE_MAX_LENGTH = 195
ANSWER_TITLE_MAX_LENGTH = 270

# Constants to define Step Type
QUESTION_MULTIPLE = 'multiple'
QUESTION_UNIQUE = 'unique'
STEP_TYPES_QUESTION = ['question', 'workshopquestion', QUESTION_UNIQUE, QUESTION_MULTIPLE]

WORKSHOP_TYPE_CHOICES = Choices(
    ('QUIZ', 'quiz', _('Quiz')),
    ('LIVEVOTING', 'livevoting', _('Live voting')),
)
