# 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)
                                     max_length=1000, blank=True)
    director_phone = models.CharField(
        verbose_name=_('Tel.'),
        max_length=1000, blank=True)

    producer = models.CharField(verbose_name=_('Name'),
                                max_length=1000, blank=True)
    producer_address = models.TextField(verbose_name=_('Address'),
                                        blank=True)
    producer_email = models.CharField(
        verbose_name=_('Email'), max_length=1000, blank=True)
    producer_site = models.CharField(
        verbose_name=_('Website'), max_length=1000, blank=True)
    producer_phone = models.CharField(
        verbose_name=_('Tel.'),
        max_length=1000, blank=True)

    screenwriter = models.CharField(verbose_name=_('Script writer'),
                                    max_length=1000, blank=True)
    editor = models.CharField(verbose_name=_('Editor'),
                              max_length=1000, blank=True)
    music = models.CharField(verbose_name=_('Music composer'),
                             max_length=1000, blank=True)
    director_photography = models.CharField(
        verbose_name=_('Director of photography'),
        max_length=1000, blank=True)
    other_credits = models.TextField(verbose_name=_('Other credits'),
                                     blank=True)

    allow_tv = models.IntegerField(

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

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

    producer = models.CharField(verbose_name=_('Name'),
                                max_length=1000, blank=True)
    producer_address = models.TextField(verbose_name=_('Address'),
                                        blank=True)
    producer_email = models.CharField(
        verbose_name=_('Email'), max_length=1000, blank=True)
    producer_site = models.CharField(
        verbose_name=_('Website'), max_length=1000, blank=True)
    producer_phone = models.CharField(
        verbose_name=_('Tel.'),
        max_length=1000, blank=True)

    screenwriter = models.CharField(verbose_name=_('Script writer'),
                                    max_length=1000, blank=True)
    editor = models.CharField(verbose_name=_('Editor'),
                              max_length=1000, blank=True)
    music = models.CharField(verbose_name=_('Music composer'),
                             max_length=1000, blank=True)
    director_photography = models.CharField(
        verbose_name=_('Director of photography'),
        max_length=1000, blank=True)
    other_credits = models.TextField(verbose_name=_('Other credits'),
                                     blank=True)

    allow_tv = models.IntegerField(

        choices=YESNO, default=1,