Fix migration templates
Make it possible to use custom admin model. Also make it possible to use
custom layout