# -*- coding: utf-8 -*-
from django import forms
from .models import Calendar, Website
import pytz

class CalendarForm(forms.ModelForm):
    name = forms.CharField(required=True,
        label='Name', help_text='Type in a calendar name.')

    class Meta:
        model = Calendar
        fields = ['name']

class WebsiteForm(forms.ModelForm):
    name = forms.CharField(required=True,
        label='Name', help_text='Type in a website name.')
    href = forms.URLField(required=True,
        label='Link', help_text='Type in a website link.')
    timezone = forms.ChoiceField(required=True,
        label='Timezone', help_text='Select default timezone.',
        choices=map(lambda x: (x, x), pytz.common_timezones),
        initial='UTC')

    class Meta:
        model = Website
        fields = ['name', 'href', 'timezone']

2efee8be9d1e7fcea5f66cde807c0afff004d5b1
<mask token>


class WebsiteForm(forms.ModelForm):
    name = forms.CharField(required=True, label='Name', help_text=
        'Type in a website name.')
    href = forms.URLField(required=True, label='Link', help_text=
        'Type in a website link.')
    timezone = forms.ChoiceField(required=True, label='Timezone', help_text
        ='Select default timezone.', choices=map(lambda x: (x, x), pytz.
        common_timezones), initial='UTC')


    class Meta:
        model = Website
        fields = ['name', 'href', 'timezone']

<mask token>


class CalendarForm(forms.ModelForm):
    <mask token>


    class Meta:
        model = Calendar
        fields = ['name']


class WebsiteForm(forms.ModelForm):
    name = forms.CharField(required=True, label='Name', help_text=
        'Type in a website name.')
    href = forms.URLField(required=True, label='Link', help_text=
        'Type in a website link.')
    timezone = forms.ChoiceField(required=True, label='Timezone', help_text
        ='Select default timezone.', choices=map(lambda x: (x, x), pytz.
        common_timezones), initial='UTC')


    class Meta:
        model = Website
        fields = ['name', 'href', 'timezone']

<mask token>


class CalendarForm(forms.ModelForm):
    name = forms.CharField(required=True, label='Name', help_text=
        'Type in a calendar name.')


    class Meta:
        model = Calendar
        fields = ['name']


class WebsiteForm(forms.ModelForm):
    name = forms.CharField(required=True, label='Name', help_text=
        'Type in a website name.')
    href = forms.URLField(required=True, label='Link', help_text=
        'Type in a website link.')
    timezone = forms.ChoiceField(required=True, label='Timezone', help_text
        ='Select default timezone.', choices=map(lambda x: (x, x), pytz.
        common_timezones), initial='UTC')


    class Meta:
        model = Website
        fields = ['name', 'href', 'timezone']

from django import forms
from .models import Calendar, Website
import pytz


class CalendarForm(forms.ModelForm):
    name = forms.CharField(required=True, label='Name', help_text=
        'Type in a calendar name.')


    class Meta:
        model = Calendar
        fields = ['name']


class WebsiteForm(forms.ModelForm):
    name = forms.CharField(required=True, label='Name', help_text=
        'Type in a website name.')
    href = forms.URLField(required=True, label='Link', help_text=
        'Type in a website link.')
    timezone = forms.ChoiceField(required=True, label='Timezone', help_text
        ='Select default timezone.', choices=map(lambda x: (x, x), pytz.
        common_timezones), initial='UTC')


    class Meta:
        model = Website
        fields = ['name', 'href', 'timezone']

# -*- coding: utf-8 -*-
from django import forms
from .models import Calendar, Website
import pytz

class CalendarForm(forms.ModelForm):
    name = forms.CharField(required=True,
        label='Name', help_text='Type in a calendar name.')

    class Meta:
        model = Calendar
        fields = ['name']

class WebsiteForm(forms.ModelForm):
    name = forms.CharField(required=True,
        label='Name', help_text='Type in a website name.')
    href = forms.URLField(required=True,
        label='Link', help_text='Type in a website link.')
    timezone = forms.ChoiceField(required=True,
        label='Timezone', help_text='Select default timezone.',
        choices=map(lambda x: (x, x), pytz.common_timezones),
        initial='UTC')

    class Meta:
        model = Website
        fields = ['name', 'href', 'timezone']
