Skip to content

Commit

Permalink
Change META_SITE_PROTOCOL a choice
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco Federighi committed Dec 9, 2015
1 parent 19f675c commit dae427c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion aldryn_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,15 @@
('Website', 'Website'),
)

PROTOCOLS = (
('http', 'http'),
('https', 'https'),
)


class Form(forms.BaseForm):

META_SITE_PROTOCOL = forms.CharField('META_SITE_PROTOCOL', required=True)
META_SITE_PROTOCOL = forms.SelectField('META_SITE_PROTOCOL', choices=PROTOCOLS)
META_SITE_TYPE = forms.SelectField('META_SITE_TYPE', choices=OBJECT_TYPES)
META_SITE_NAME = forms.CharField('META_SITE_NAME', required=False)
META_IMAGE_URL = forms.CharField('META_IMAGE_URL', required=False)
Expand Down

0 comments on commit dae427c

Please sign in to comment.