def edit_form(self, obj):
        return self._edit_form_class(get_form_data(), **obj)
Copies the query object and alters the field list and order by to do a more efficient count
dataset/ETHPy150Open flask-admin/flask-admin/flask_admin/contrib/pymongo/view.py/ModelView.edit_form--crossover with--dataset/ETHPy150Open ambitioninc/django-query-builder/querybuilder/query.py/Query.get_count_query