Skip to content

Commit

Permalink
communitydebate/views: initialize upload forms when form is not valid
Browse files Browse the repository at this point in the history
  • Loading branch information
Rineee committed Oct 16, 2020
1 parent d57155a commit 93c3fd5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions euth/communitydebate/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ def post(self, request, *args, **kwargs):
_('Topic '
'successfully created'))
return response

upload_forms = forms.TopicFileUploadFormset(request.POST,
request.FILES)
return render(request, self.template_name,
self.get_context_data(upload_forms=upload_forms))

Expand Down

0 comments on commit 93c3fd5

Please sign in to comment.