mirror of
https://github.com/ArchiveBox/ArchiveBox
synced 2024-11-23 12:43:10 +00:00
7 lines
219 B
Python
7 lines
219 B
Python
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')
|