coleifer/flask-peewee — pull request #27 by medwards (2012-03-20 10:49:49+00:00)
Title: Easy Model Templates

I was trying to hack up a ModelAdmin to do something funky on the edit page for a specific model but it wasn't really working for me. In my code I then do
def __init__(self, admin, model):
super(SpecialModelAdmin, self).__init__(admin, model)
self.templates['edit'] = 'admin/models/specialmodel/edit.html'

Alternatively, if there is some kind of smart routing that I missed that would work too. This is kind of hack-ish and I'm feeling like I missed some more natural scheme of template searchpaths...