# Path: submissions/constants.py
# YESNO = (
#     (1, _('Yes')),
#     (2, _('No')),
# )
# 
# YESNOMAYBE = (
#     (0, _('Maybe')),
#     (1, _('Yes')),
#     (2, _('No')),
# )
# 
# LANGUAGES = sorted(
#     (
#         (lang.alpha2, _(lang.name))
#         for lang in pycountry.languages
#         if hasattr(lang, 'alpha2')
#     ),
#     key=lambda x: x[1]
# )
# 
# SECTIONS = (
#     (1, _('Fiction')),
#     (2, _('Animation')),
#     (3, _('Documentary')),
#     (4, _('Experimental')),
# )
# 
# BACKLINKS = (
#     (1, _('festival website')),
#     (2, _('Facebook')),
#     (3, _('Twitter')),
#     (4, _('vk.com')),
#     (5, _('email')),
#     (6, _('internet search')),
#     (7, _('friends')),
#     (8, _('festivals database')),
#     (9, _('I participated in CPM\'2012')),
#     (10, _('place of study')),
#     (11, _('work')),
#     (12, _('other')),
# )


from django.db import models
from django.utils.translation import ugettext_lazy as _
from django.conf import settings
from cpm_generic.constants import COUNTRIES
from submissions.constants import (YESNO, YESNOMAYBE, LANGUAGES, SECTIONS,
                                   BACKLINKS)
    applicant_phone = models.CharField(
        verbose_name=_('Tel.'),
        max_length=1000, blank=True)

    submission_language = models.CharField(
        verbose_name=_('Submission language'),
        max_length=2, choices=settings.LANGUAGES,
        default=settings.LANGUAGES[0][0])

    extra_data = models.TextField(
        verbose_name=_('Structured data'), null=True, blank=True)
    comment = models.TextField(
        verbose_name=_('Comment'), null=True, blank=True)
    comment_email_sent = models.BooleanField(
        verbose_name=_('E-mail was sent'), default=False)
    comment_film_received = models.BooleanField(
        verbose_name=_('Film is received'), default=False)
    comment_papers_received = models.BooleanField(
        verbose_name=_('Papers were received'), default=False)
    comment_vob_received = models.BooleanField(
        verbose_name=_('Vob received'), default=False)

    submitted_at = models.DateTimeField(
        auto_now_add=True, verbose_name=_('Submitted at'))
    email_sent_at = models.DateTimeField(
        null=True, blank=True, verbose_name=_('E-mail sent at'))
    film_received_at = models.DateTimeField(
        null=True, blank=True, verbose_name=_('Film received at'))
    papers_received_at = models.DateTimeField(
        null=True, blank=True, verbose_name=_('Papers received at'))

# Path: submissions/constants.py
# YESNO = (
#     (1, _('Yes')),
#     (2, _('No')),
# )
# 
# YESNOMAYBE = (
#     (0, _('Maybe')),
#     (1, _('Yes')),
#     (2, _('No')),
# )
# 
# LANGUAGES = sorted(
#     (
#         (lang.alpha2, _(lang.name))
#         for lang in pycountry.languages
#         if hasattr(lang, 'alpha2')
#     ),
#     key=lambda x: x[1]
# )
# 
# SECTIONS = (
#     (1, _('Fiction')),
#     (2, _('Animation')),
#     (3, _('Documentary')),
#     (4, _('Experimental')),
# )
# 
# BACKLINKS = (
#     (1, _('festival website')),
#     (2, _('Facebook')),
#     (3, _('Twitter')),
#     (4, _('vk.com')),
#     (5, _('email')),
#     (6, _('internet search')),
#     (7, _('friends')),
#     (8, _('festivals database')),
#     (9, _('I participated in CPM\'2012')),
#     (10, _('place of study')),
#     (11, _('work')),
#     (12, _('other')),
# )


# Path: submissions/models.py
from django.db import models
from django.utils.translation import ugettext_lazy as _
from django.conf import settings
from cpm_generic.constants import COUNTRIES
from submissions.constants import (YESNO, YESNOMAYBE, LANGUAGES, SECTIONS,
                                   BACKLINKS)

    applicant_phone = models.CharField(
        verbose_name=_('Tel.'),
        max_length=1000, blank=True)

    submission_language = models.CharField(
        verbose_name=_('Submission language'),
        max_length=2, choices=settings.LANGUAGES,
        default=settings.LANGUAGES[0][0])

    extra_data = models.TextField(
        verbose_name=_('Structured data'), null=True, blank=True)
    comment = models.TextField(
        verbose_name=_('Comment'), null=True, blank=True)
    comment_email_sent = models.BooleanField(
        verbose_name=_('E-mail was sent'), default=False)
    comment_film_received = models.BooleanField(
        verbose_name=_('Film is received'), default=False)
    comment_papers_received = models.BooleanField(
        verbose_name=_('Papers were received'), default=False)
    comment_vob_received = models.BooleanField(
        verbose_name=_('Vob received'), default=False)

    submitted_at = models.DateTimeField(
        auto_now_add=True, verbose_name=_('Submitted at'))
    email_sent_at = models.DateTimeField(
        null=True, blank=True, verbose_name=_('E-mail sent at'))
    film_received_at = models.DateTimeField(
        null=True, blank=True, verbose_name=_('Film received at'))
    papers_received_at = models.DateTimeField(
        null=True, blank=True, verbose_name=_('Papers received at'))

    vob_received_at = models.DateTimeField(