Skip to content

Commit

Permalink
Consistent class names
Browse files Browse the repository at this point in the history
  • Loading branch information
pingiun committed Nov 11, 2022
1 parent c7858e5 commit 097b188
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/django_filepond_widget/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from django_drf_filepond.models import TemporaryUpload

class FilepondFile(UploadedFile):
class FilePondFile(UploadedFile):
def __init__(self, temporary_upload: TemporaryUpload, *args, **kwargs):
self.temporary_upload = temporary_upload
super().__init__(file=temporary_upload.file, name=temporary_upload.upload_name, *args, **kwargs)
Expand Down Expand Up @@ -56,5 +56,5 @@ def __init__(
def to_python(self, data):
if isinstance(data, str):
temp_upload = TemporaryUpload.objects.get(upload_id=data)
return FilepondFile(temp_upload)
return FilePondFile(temp_upload)
return super().to_python(data)

0 comments on commit 097b188

Please sign in to comment.