# Path: conference/cfp/models.py
# class Submission(AbstractSubmission):
#     proposal_why = models.TextField(
#         _('Motivation'),
#         help_text=_('Explain here why your proposal is important for the attendees and what they will get from it.')
#     )
#     proposal_requirements = models.TextField(
#         _('Requirements'), blank=False, default='',
#     )
#     mentor_wanted = models.BooleanField(
#         _('Mentor'), default=False,
#         help_text=_('More experienced speakers can help you reviewing your talk, '
#                     'practicing, and getting ready for the presentation')
#     )
#     mentor_offer = models.BooleanField(
#         _('Mentor - Offer'), default=False,
#         help_text=_('Are you an experienced speaker and are you willing to help other speakers? '
#                     'Select this and we will get in contact with you!')
#     )
#     pycon = models.BooleanField(
#         _('PyCon'), default=False,
#         help_text=_('We will share your proposal with the PyCon Italia Team and they will '
#                     'evaluate independently your proposal.')
#     )
# 
#     class Meta:
#         verbose_name = _('talk submission')
#         verbose_name_plural = _('talk submissions')
# 
# class WorkshopSubmission(AbstractSubmission):
#     TWO_HOURS = '2'
#     DURATIONS = (
#         (TWO_HOURS, _('2 Hours')),
#     )
#     workshop_duration = models.CharField(
#         _('Duration'), choices=DURATIONS, max_length=10,
#     )
# 
#     class Meta:
#         verbose_name = _('workshop submission')
#         verbose_name_plural = _('workshop submissions')


import datetime as dt
from autoslug import AutoSlugField
from autoslug.utils import slugify
from django.core.exceptions import ValidationError
from django.db import models
from django.template.defaultfilters import truncatechars_html
from django.utils.translation import gettext_lazy as _
from filer.fields.image import FilerImageField
from filer.models import ThumbnailOption
from meta.models import ModelMeta
from conference.cfp.models import Submission, WorkshopSubmission
# -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals





class Slot(ModelMeta, models.Model):
    """
    Model for conference time slots. It can be for a talk, a workshop, or a custom time slot (i. e. coffee break)
    """
    talk = models.ForeignKey(
        Submission, related_name='talks', limit_choices_to={'selected': True}, null=True, blank=True
    )
    slug = AutoSlugField(
        _('Slug'), max_length=400, blank=True, populate_from='generated_slug', always_update=True
    )
    workshop = models.ForeignKey(

# Path: conference/cfp/models.py
# class Submission(AbstractSubmission):
#     proposal_why = models.TextField(
#         _('Motivation'),
#         help_text=_('Explain here why your proposal is important for the attendees and what they will get from it.')
#     )
#     proposal_requirements = models.TextField(
#         _('Requirements'), blank=False, default='',
#     )
#     mentor_wanted = models.BooleanField(
#         _('Mentor'), default=False,
#         help_text=_('More experienced speakers can help you reviewing your talk, '
#                     'practicing, and getting ready for the presentation')
#     )
#     mentor_offer = models.BooleanField(
#         _('Mentor - Offer'), default=False,
#         help_text=_('Are you an experienced speaker and are you willing to help other speakers? '
#                     'Select this and we will get in contact with you!')
#     )
#     pycon = models.BooleanField(
#         _('PyCon'), default=False,
#         help_text=_('We will share your proposal with the PyCon Italia Team and they will '
#                     'evaluate independently your proposal.')
#     )
# 
#     class Meta:
#         verbose_name = _('talk submission')
#         verbose_name_plural = _('talk submissions')
# 
# class WorkshopSubmission(AbstractSubmission):
#     TWO_HOURS = '2'
#     DURATIONS = (
#         (TWO_HOURS, _('2 Hours')),
#     )
#     workshop_duration = models.CharField(
#         _('Duration'), choices=DURATIONS, max_length=10,
#     )
# 
#     class Meta:
#         verbose_name = _('workshop submission')
#         verbose_name_plural = _('workshop submissions')


# Path: conference/schedule/models.py
import datetime as dt
from autoslug import AutoSlugField
from autoslug.utils import slugify
from django.core.exceptions import ValidationError
from django.db import models
from django.template.defaultfilters import truncatechars_html
from django.utils.translation import gettext_lazy as _
from filer.fields.image import FilerImageField
from filer.models import ThumbnailOption
from meta.models import ModelMeta
from conference.cfp.models import Submission, WorkshopSubmission

# -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals





class Slot(ModelMeta, models.Model):
    """
    Model for conference time slots. It can be for a talk, a workshop, or a custom time slot (i. e. coffee break)
    """
    talk = models.ForeignKey(
        Submission, related_name='talks', limit_choices_to={'selected': True}, null=True, blank=True
    )
    slug = AutoSlugField(
        _('Slug'), max_length=400, blank=True, populate_from='generated_slug', always_update=True
    )
    workshop = models.ForeignKey(

        WorkshopSubmission, related_name='workshops', limit_choices_to={'selected': True}, null=True, blank=True