1
0
Fork 0
mirror of synced 2024-06-26 10:00:19 +12:00

Update archivebox/core/forms.py

Format cleanup

Co-authored-by: Nick Sweeting <git@sweeting.me>
This commit is contained in:
BlipRanger 2020-12-10 12:44:38 -05:00 committed by GitHub
parent 8b0ff2dfee
commit 7ce1f63183
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -28,11 +28,11 @@ 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')
archiveMethods = forms.MultipleChoiceField(
required=False,
widget=forms.SelectMultiple,
choices=ARCHIVE_METHODS,)
archive_methods = forms.MultipleChoiceField(
required=False,
widget=forms.SelectMultiple,
choices=ARCHIVE_METHODS,
)
class TagWidgetMixin:
def format_value(self, value):
if value is not None and not isinstance(value, str):