Skip to content

Commit

Permalink
standards
Browse files Browse the repository at this point in the history
  • Loading branch information
jscott1989 committed Oct 12, 2016
1 parent ad3e008 commit 89c2caa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/events/tests/test_ticket_purchase.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ def test_purchase(self):
# So for now just use ticket.order
self.assertEqual(self.user.orders.first(),
response.context["ticket"].order)
self.assertEqual(event.orders.first(), response.context["ticket"].order)
self.assertEqual(event.orders.first(),
response.context["ticket"].order)

def test_cant_view_others_confirmation(self):
"""Test that users can only view their own order confirmations."""
Expand Down
2 changes: 1 addition & 1 deletion src/events/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def tickets_purchased(request, pk):
return redirect("view_event", order.event.pk)

return redirect("make_payment", payment.pk)

return render(request, "events/tickets_purchased.html", {
"order": order, "event": order.tickets.first().event})

Expand Down

0 comments on commit 89c2caa

Please sign in to comment.