1
0
Fork 0
mirror of synced 2024-07-01 20:40:41 +12:00
ArchiveBox/archivebox/core/forms.py

8 lines
219 B
Python
Raw Normal View History

from django import forms
CHOICES = (('url', 'URL'), ('feed', 'Feed'))
class AddLinkForm(forms.Form):
url = forms.URLField()
source = forms.ChoiceField(choices=CHOICES, widget=forms.RadioSelect, initial='url')