Verified Commit d7075eb7 authored by Sli's avatar Sli
Browse files

django2.2: fix breaking change for getting uploaded files size

parent cf3f5ea6
......@@ -109,7 +109,7 @@ class AddFilesForm(forms.Form):
owner=owner,
is_folder=False,
mime_type=f.content_type,
size=f._size,
size=f.size,
)
try:
new_file.clean()
......
......@@ -302,7 +302,7 @@ class UserProfileForm(forms.ModelForm):
owner=self.instance,
is_folder=False,
mime_type=f.content_type,
size=f._size,
size=f.size,
moderator=self.instance,
is_moderated=True,
)
......
......@@ -630,7 +630,7 @@ class UserUploadProfilePictView(CanEditMixin, DetailView):
owner=self.object,
is_folder=False,
mime_type=f.content_type,
size=f._size,
size=f.size,
)
new_file.file.name = name
new_file.save()
......
......@@ -78,7 +78,7 @@ class SASForm(forms.Form):
file=f,
owner=owner,
mime_type=f.content_type,
size=f._size,
size=f.size,
is_folder=False,
is_moderated=automodere,
)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment