def get(self, request, *args, **kwargs):
        from django.core.exceptions import ValidationError
        if 'year_month' in request.GET:
            try:
                year, month = request.GET['year_month'].split('-')
                year, month = int(year), int(month)
                return _malt_csv_response(month, year)
            except (ValueError, __HOLE__):
                messages.error(
                    request,
                    _("Enter a valid year-month. e.g. 2015-09 (for December 2015)")
                )
        return super(DownloadMALTView, self).get(request, *args, **kwargs)
dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/hqadmin/views.py/DownloadMALTView.get