Skip to content

Commit

Permalink
Minor changes to show form errors
Browse files Browse the repository at this point in the history
  • Loading branch information
chhabrakadabra committed Apr 3, 2013
1 parent 1510a4c commit d92268b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions djangotodo/todolist/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ def list(request):
form = TaskForm(request.POST)
if form.is_valid():
form.save()
# make sure to return use a clean form for the resulting page
form = TaskForm()
# make sure to return use a clean form for the resulting page
form = TaskForm()

else:
raise PermissionDenied('Only GET and POST methods are allowed')
Expand Down

0 comments on commit d92268b

Please sign in to comment.