Refactored view class hierarchy, refs #272

See https://github.com/simonw/datasette/issues/272#issuecomment-502393107
This commit is contained in:
Simon Willison 2019-06-15 12:41:34 -07:00
commit d4df640d18
5 changed files with 11 additions and 11 deletions

View file

@ -6,7 +6,7 @@ from sanic import response
from datasette.utils import CustomJSONEncoder
from datasette.version import __version__
from .base import RenderMixin
from .base import BaseView
# Truncate table list on homepage at:
@ -16,7 +16,7 @@ TRUNCATE_AT = 5
COUNT_TABLE_LIMIT = 30
class IndexView(RenderMixin):
class IndexView(BaseView):
name = "index"
def __init__(self, datasette):