from datetime import datetime

from django.utils.timezone import get_current_timezone

from pyconcz_2017.proposals.models import Talk, Workshop, FinancialAid

tz = get_current_timezone()


class TalksConfig:
    model = Talk
    key = 'talks'
    title = 'Talks'
    cfp_title = 'Submit your talk'
    template_about = 'proposals/talks_about.html'
    date_start = datetime(year=2017, month=3, day=6, hour=12, minute=0, tzinfo=tz)
    date_end = datetime(year=2017, month=4, day=17, hour=23, minute=59, second=59, tzinfo=tz)


class WorkshopsConfig:
    model = Workshop
    key = 'workshops'
    title = 'Workshops'
    cfp_title = 'Submit your workshop'
    template_about = 'proposals/workshops_about.html'
    date_start = datetime(year=2017, month=3, day=6, hour=12, minute=0, tzinfo=tz)
    date_end = datetime(year=2017, month=4, day=17, hour=23, minute=59, second=59, tzinfo=tz)


class FinancialAidConfig:
    model = FinancialAid
    key = 'financial-aid'
    title = 'Financial Aid'
    cfp_title = 'Financial Aid Programme'
    template_about = 'proposals/financial_aid_about.html'
    date_start = datetime(year=2016, month=9, day=8, hour=12, minute=0, tzinfo=tz)
    date_end = datetime(year=2016, month=10, day=8, hour=12, minute=0, tzinfo=tz)

from datetime import datetime

from django.utils.timezone import get_current_timezone

from pyconcz_2017.proposals.models import Talk, Workshop, FinancialAid

tz = get_current_timezone()


class TalksConfig:
    model = Talk
    key = 'talks'
    title = 'Talks'
    cfp_title = 'Submit your talk'
    template_about = 'proposals/talks_about.html'
    date_start = datetime(year=2017, month=3, day=6, hour=12, minute=0, tzinfo=tz)
    date_end = datetime(year=2017, month=4, day=17, hour=23, minute=59, second=59, tzinfo=tz)


class WorkshopsConfig:
    model = Workshop
    key = 'workshops'
    title = 'Workshops'
    cfp_title = 'Submit your workshop'
    template_about = 'proposals/workshops_about.html'
    date_start = datetime(year=2017, month=3, day=6, hour=12, minute=0, tzinfo=tz)
    date_end = datetime(year=2017, month=4, day=17, hour=23, minute=59, second=59, tzinfo=tz)


class FinancialAidConfig:
    model = FinancialAid
    key = 'financial-aid'
    title = 'Financial Aid'
    cfp_title = 'Financial Aid Programme'
    template_about = 'proposals/financial_aid_about.html'
    date_start = datetime(year=2017, month=4, day=1, hour=12, minute=0, tzinfo=tz)
    date_end = datetime(year=2017, month=4, day=30, hour=12, minute=0, tzinfo=tz)

Configure Financial aid app