Skip to content

Commit 2d51f5c

Browse files
committed
Not in fix
1 parent a5541b0 commit 2d51f5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

django_editorjs_fields/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def post(self, request):
2929
'image/webp',
3030
'image/gif',
3131
]
32-
if not the_file.content_type in allowed_types:
32+
if the_file.content_type not in allowed_types:
3333
return JsonResponse(
3434
{'success': 0, 'message': 'You can only upload images.'}
3535
)

0 commit comments

Comments
 (0)