mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-15 07:34:27 -04:00
Update archivebox/core/forms.py
Format cleanup Co-authored-by: Nick Sweeting <git@sweeting.me>
This commit is contained in:
parent
8b0ff2dfee
commit
7ce1f63183
1 changed files with 5 additions and 5 deletions
|
@ -28,11 +28,11 @@ ARCHIVE_METHODS = [
|
||||||
class AddLinkForm(forms.Form):
|
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)
|
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, widget=forms.RadioSelect, initial='0')
|
||||||
archiveMethods = forms.MultipleChoiceField(
|
archive_methods = forms.MultipleChoiceField(
|
||||||
required=False,
|
required=False,
|
||||||
widget=forms.SelectMultiple,
|
widget=forms.SelectMultiple,
|
||||||
choices=ARCHIVE_METHODS,)
|
choices=ARCHIVE_METHODS,
|
||||||
|
)
|
||||||
class TagWidgetMixin:
|
class TagWidgetMixin:
|
||||||
def format_value(self, value):
|
def format_value(self, value):
|
||||||
if value is not None and not isinstance(value, str):
|
if value is not None and not isinstance(value, str):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue