From c28ad8bd1be0a84c370a384f353ceb5915eecf77 Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Mon, 15 Feb 2021 20:42:59 -0500 Subject: [PATCH] fix AddLinkForm widget complaining about missing template var class --- archivebox/core/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/archivebox/core/forms.py b/archivebox/core/forms.py index ed584c68..5521ff1d 100644 --- a/archivebox/core/forms.py +++ b/archivebox/core/forms.py @@ -20,7 +20,7 @@ ARCHIVE_METHODS = [ class AddLinkForm(forms.Form): url = forms.RegexField(label="URLs (one per line)", regex=URL_REGEX, min_length='6', strip=True, widget=forms.Textarea, required=True) - depth = forms.ChoiceField(label="Archive depth", choices=CHOICES, widget=forms.RadioSelect, initial='0') + depth = forms.ChoiceField(label="Archive depth", choices=CHOICES, initial='0', widget=forms.RadioSelect(attrs={"class": "depth-selection"})) archive_methods = forms.MultipleChoiceField( label="Archive methods (select at least 1, otherwise all will be used by default)", required=False,