Skip to content

Commit 4c786e9

Browse files
committed
pass request.FILES to form
1 parent 36bd490 commit 4c786e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

django_comments/views/comments.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def post_comment(request, next=None, using=None):
7171
preview = "preview" in data
7272

7373
# Construct the comment form
74-
form = django_comments.get_form()(target, data=data)
74+
form = django_comments.get_form()(target, data=data, files=request.FILES)
7575

7676
# Check security information
7777
if form.security_errors():

0 commit comments

Comments
 (0)