# Path: konfera/models/abstract.py
# class KonferaModel(models.Model):
# 
#     class Meta:
#         abstract = True
# 
#     uuid = models.UUIDField(default=uuid.uuid4, editable=False)
#     date_created = models.DateTimeField(verbose_name=_('Created'), auto_now_add=True)
#     date_modified = models.DateTimeField(verbose_name=_('Last modified'), auto_now=True)
# 
# Path: konfera/settings.py
# TALK_LANGUAGE = getattr(settings, 'TALK_LANGUAGE',
#                         (
#                             ('SK', _('Slovak')),
#                             ('CZ', _('Czech')),
#                             ('EN', _('English')),
#                         ))
# 
# TALK_LANGUAGE_DEFAULT = 'EN'
# 
# TALK_DURATION = getattr(settings, 'TALK_DURATION',
#                         (
#                             (5, _('5 min')),
#                             (30, _('30 min')),
#                             (45, _('45 min')),
#                         ))


from django.core.exceptions import ValidationError
from django.db import models
from django.utils.translation import ugettext_lazy as _
from konfera.models.abstract import KonferaModel
from konfera.settings import TALK_LANGUAGE, TALK_LANGUAGE_DEFAULT, TALK_DURATION as TALK_DURATION_SETTING



class Talk(KonferaModel):
    CFP = 'cfp'
    DRAFT = 'draft'
    APPROVED = 'approved'
    PUBLISHED = 'published'
    REJECTED = 'rejected'
    WITHDRAWN = 'withdrawn'

    TALK_STATUS = (

# Path: konfera/models/abstract.py
# class KonferaModel(models.Model):
# 
#     class Meta:
#         abstract = True
# 
#     uuid = models.UUIDField(default=uuid.uuid4, editable=False)
#     date_created = models.DateTimeField(verbose_name=_('Created'), auto_now_add=True)
#     date_modified = models.DateTimeField(verbose_name=_('Last modified'), auto_now=True)
# 
# Path: konfera/settings.py
# TALK_LANGUAGE = getattr(settings, 'TALK_LANGUAGE',
#                         (
#                             ('SK', _('Slovak')),
#                             ('CZ', _('Czech')),
#                             ('EN', _('English')),
#                         ))
# 
# TALK_LANGUAGE_DEFAULT = 'EN'
# 
# TALK_DURATION = getattr(settings, 'TALK_DURATION',
#                         (
#                             (5, _('5 min')),
#                             (30, _('30 min')),
#                             (45, _('45 min')),
#                         ))


# Path: konfera/models/talk.py
from django.core.exceptions import ValidationError
from django.db import models
from django.utils.translation import ugettext_lazy as _
from konfera.models.abstract import KonferaModel
from konfera.settings import TALK_LANGUAGE, TALK_LANGUAGE_DEFAULT, TALK_DURATION as TALK_DURATION_SETTING




class Talk(KonferaModel):
    CFP = 'cfp'
    DRAFT = 'draft'
    APPROVED = 'approved'
    PUBLISHED = 'published'
    REJECTED = 'rejected'
    WITHDRAWN = 'withdrawn'

    TALK_STATUS = (

        (CFP, _('Call For Proposals')),