def get_events_by_location(self, request, app_label, model, pk, extra_context=None):
		try:
			ct = ContentType.objects.get_by_natural_key(app_label, model)
			location = ct.model_class()._default_manager.get(pk=pk)
		except __HOLE__:
			raise Http404
		
		events = self.get_event_queryset().filter(location_content_type=ct, location_pk=location.pk)
		
		context = extra_context or {}
		context.update({
			'location': location
		})
		return events, context
	
	# Detail View.
dataset/ETHPy150Open ithinksw/philo/philo/contrib/julian/models.py/CalendarView.get_events_by_location