mrjoes/flask-admin — pull request #70 by techniq (2012-09-24 14:24:20+00:00)
Title: Use url/endpoint from passed in index_view if present

If an `index_view` is passed, use its url and endpoint values, otherwise when initing Admin, you need to repeat the values for both the `Admin()` parameters as well as the `IndexView()` or get the exception: `Exception: Cannot assign two Admin() instances with same URL and subdomain to the same application.`

So instead of:
`manage = Admin(app, url='/manage', endpoint='manage', index_view=ManageIndex(url='/manage', endpoint='manage'))`
You can just do:
`manage = Admin(app, index_view=ManageIndex(url='/manage', endpoint='manage'))`

I also made a consistency change with how the default values for AdminIndexView are set.