def render_to_response(self, context, **response_kwargs):
        """
        Overloaded to deal with _format arguments.
        """
        # should we actually render in json?
        if self.request.GET in '_format' and self.request.GET['_format'] == 'json':
            json_data = self.as_json(context)
            return HttpResponse(json.dumps(json_data), content_type='application/javascript')

        # otherwise, return normally
        else:
            return super(SmartView, self).render_to_response(context)
dataset/ETHPy150Open nyaruka/smartmin/smartmin/views.py/SmartView.render_to_response/swapped operands of `in`