def report_view(self, request):
        assert self.histogram_field is not None, "Set histogram_field you idiot"

        histogram = Histogram(self.model, self.histogram_field,
            self.queryset(request), months=self.histogram_months,
            days=self.histogram_days)
        
        context = {
            'title': "Histogram for %s" % self.model._meta.object_name,
            'histogram': histogram,
        }

        return render_to_response("admin/report.html", context,
            context_instance=RequestContext(request, current_app=self.admin_site.name))
dataset/ETHPy150Open alex/django-admin-histograms/django_histograms/admin.py/HistogramAdmin.report_view/original