code: def event_listing(
      request,
      template='swingtime/event_list.html',
      events=None,
      **extra_context
  ):
      '''
      View all ``events``.
  
      If ``events`` is a queryset, clone it. If ``None`` default to all ``Event``s.
  
      Context parameters:
  
      ``events``
          an iterable of ``Event`` objects
  
      ... plus all values passed in via **extra_context
      '''
      events = events or Event.objects.all()
      extra_context['events'] = events
      return render(request, template, extra_contextf event_listing(
      request,
      template='swingtime/event_list.html',
      events=None,
      **extra_context
  ):
      '''
      View all ``events``.
  
      If ``events`` is a queryset, clone it. If ``None`` default to all ``Event``s.
  
      Context parameters:
  
      ``events``
          an iterable of ``Event`` objects
  
      ... plus all values passed in via **extra_context
      '''
      events = events or Event.objects.all()
      extra_context['events'] = events
      return render(request, template, extra_context)
docs: View all ``events``.
  
      If ``events`` is a queryset, clone it. If ``None`` default to all ``Event``s.
  
      Context parameters:
  
      ``events``
          an iterable of ``Event`` objects
  
      ... plus all values passed in via **extra_context