fix the add links form

This commit is contained in:
Nick Sweeting 2020-07-13 12:21:37 -04:00
parent 215d5eae32
commit ae208435c9
6 changed files with 10 additions and 8 deletions

View file

@ -1,7 +1,10 @@
from django import forms
CHOICES = (('url', 'URL'), ('feed', 'Feed'))
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()
source = forms.ChoiceField(choices=CHOICES, widget=forms.RadioSelect, initial='url')
depth = forms.ChoiceField(choices=CHOICES, widget=forms.RadioSelect, initial='0')