1
0
Fork 0
mirror of synced 2024-06-28 11:00:35 +12:00
ArchiveBox/archivebox/core/forms.py
2020-07-13 12:21:37 -04:00

11 lines
300 B
Python

from django import forms
CHOICES = (
('0', 'depth=0 (archive just this url)'),
('1', 'depth=1 (archive this url and all sites one link away)'),
)
class AddLinkForm(forms.Form):
url = forms.URLField()
depth = forms.ChoiceField(choices=CHOICES, widget=forms.RadioSelect, initial='0')