@expose('/edit/', methods=('GET', 'POST'))
def edit_view(self):
    self._template_args['foo'] = 'bar'
return super(TestAdmin, self).edit_view()
Passing Arguments to ModelView edit template in flask-admin