[Django Upgrade] __init__() takes 1 positional argument but 2 were given
@@ -127,13 +127,13 @@ class SetReplicationFactorForm(forms.Form):
class UploadFileForm(forms.Form):
op = "upload"
# The "hdfs" prefix in "hdfs_file" triggers the HDFSfileUploadHandler
- hdfs_file = FileField(forms.Form, label=_("File to Upload"))
+ hdfs_file = FileField(label=_("File to Upload"))
dest = PathField(label=_("Destination Path"), help_text=_("Filename or directory to upload to."))
extract_archive = BooleanField(required=False)
class UploadArchiveForm(forms.Form):
op = "upload"
- archive = FileField(forms.Form, label=_("Archive to Upload"))
+ archive = FileField(label=_("Archive to Upload"))
dest = PathField(label=_("Destination Path"), help_text=_("Archive to upload to."))
class RemoveForm(forms.Form):
