K. How about removing https://github.com/elasticsales/flask-mongorest/blob/master/flask_mongorest/views.py#L99 -- looks like that var is unused?