# 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)
        choices=YESNO, default=1,
        verbose_name=_(u'Authorization to use excerpts of the film for '
                       u'promotion (max 10% of the total length) '
                       u'in television')
    )
    allow_noncommercial = models.IntegerField(
        choices=YESNO, default=1,
        verbose_name=_(u'Authorization to include the film in the festival '
                       u'video collection for non-commercial screenings')
    )
    allow_network = models.IntegerField(
        choices=YESNO, default=1,
        verbose_name=_(u'Authorization to screen the film at film festivals '
                       u'from Cinema Perpetuum Mobile partner network')
    )

    applicant = models.CharField(verbose_name=_('Name'),
                                 max_length=1000)
    applicant_address = models.TextField(verbose_name=_('Address'))
    applicant_email = models.CharField(verbose_name=_('Email'),
                                       max_length=1000)
    applicant_site = models.CharField(verbose_name=_('Website'),
                                      max_length=1000, blank=True)
    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,

# 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)

        choices=YESNO, default=1,
        verbose_name=_(u'Authorization to use excerpts of the film for '
                       u'promotion (max 10% of the total length) '
                       u'in television')
    )
    allow_noncommercial = models.IntegerField(
        choices=YESNO, default=1,
        verbose_name=_(u'Authorization to include the film in the festival '
                       u'video collection for non-commercial screenings')
    )
    allow_network = models.IntegerField(
        choices=YESNO, default=1,
        verbose_name=_(u'Authorization to screen the film at film festivals '
                       u'from Cinema Perpetuum Mobile partner network')
    )

    applicant = models.CharField(verbose_name=_('Name'),
                                 max_length=1000)
    applicant_address = models.TextField(verbose_name=_('Address'))
    applicant_email = models.CharField(verbose_name=_('Email'),
                                       max_length=1000)
    applicant_site = models.CharField(verbose_name=_('Website'),
                                      max_length=1000, blank=True)
    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])