Skip to content

Commit

Permalink
Changing the method to separate behaviors
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastian-code committed Mar 15, 2017
1 parent 8b592e8 commit f14a55c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion qa/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ def post(self, request, question_id):
question.closed = True

else:
question.closed = False
raise ValidationError("Sorry, this question is already closed")

question.save()

next_url = request.POST.get('next', None)
Expand Down

0 comments on commit f14a55c

Please sign in to comment.