We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5541b0 commit 2d51f5cCopy full SHA for 2d51f5c
django_editorjs_fields/views.py
@@ -29,7 +29,7 @@ def post(self, request):
29
'image/webp',
30
'image/gif',
31
]
32
- if not the_file.content_type in allowed_types:
+ if the_file.content_type not in allowed_types:
33
return JsonResponse(
34
{'success': 0, 'message': 'You can only upload images.'}
35
)
0 commit comments