def last_event(request, slug):
try:<EOL><INDENT>service = Service.objects.get(slug=slug)<EOL><DEDENT>except Service.DoesNotExist:<EOL><INDENT>return HttpResponseRedirect(reverse('<STR_LIT>'))<EOL><DEDENT>try:<EOL><INDENT>evt = service.event_set.order_by('<STR_LIT>')[<NUM_LIT:0>]<EOL><DEDENT>except IndexError:<EOL><INDENT>return HttpResponseRedirect(service.get_absolute_url())<EOL><DEDENT>return event(request, evt.pk)<EOL>
Displays a list of all services and their current status.