# -*- coding: utf-8 -*-

from aldryn_client import forms


class Form(forms.BaseForm):

    META_SITE_PROTOCOL = forms.CharField('META_SITE_PROTOCOL', required=True)
    META_SITE_DOMAIN = forms.CharField('META_SITE_DOMAIN', required=True)
    META_SITE_TYPE = forms.CharField('META_SITE_TYPE', required=False)
    META_SITE_NAME = forms.CharField('META_SITE_NAME', required=False)
    META_IMAGE_URL = forms.CharField('META_IMAGE_URL', required=False)
    META_USE_OG_PROPERTIES = forms.CheckboxField('META_USE_OG_PROPERTIES', required=False)
    META_USE_TWITTER_PROPERTIES = forms.CheckboxField('META_USE_TWITTER_PROPERTIES', required=False)
    META_USE_GOOGLEPLUS_PROPERTIES = forms.CheckboxField('META_USE_GOOGLEPLUS_PROPERTIESS', required=False)
    META_USE_SITES = forms.CheckboxField('META_USE_SITES', required=False)

    def to_settings(self, data, settings):
        settings['META_SITE_PROTOCOL'] = data['META_SITE_PROTOCOL']
        settings['META_SITE_DOMAIN'] = data['META_SITE_DOMAIN']
        settings['META_SITE_TYPE'] = data['META_SITE_TYPE']
        settings['META_SITE_NAME'] = data['META_SITE_NAME']
        settings['META_INCLUDE_KEYWORDS'] = False
        settings['META_DEFAULT_KEYWORDS'] = False
        settings['META_IMAGE_URL'] = data['META_IMAGE_URL']
        settings['META_USE_OG_PROPERTIES'] = data['META_USE_OG_PROPERTIES']
        settings['META_USE_TWITTER_PROPERTIES'] = data['META_USE_TWITTER_PROPERTIES']
        settings['META_USE_GOOGLEPLUS_PROPERTIES'] = data['META_USE_GOOGLEPLUS_PROPERTIES']
        settings['META_USE_TITLE_TAG'] = False
        settings['META_USE_SITES'] = data['META_USE_SITES']
        return settings

@@ -17,16 +17,48 @@
 f-8 -*-%0A
+from django.conf import settings
 %0Afrom al
@@ -284,36 +284,38 @@
 TE_TYPE = forms.
-Char
+Select
 Field('META_SITE
@@ -318,38 +318,53 @@
 SITE_TYPE', 
-required=False
+choices=settings.OBJECT_TYPES
 )%0A    META_S

Change MEDIA_SITE_TYPE