mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Refactored view class hierarchy, refs #272
See https://github.com/simonw/datasette/issues/272#issuecomment-502393107
This commit is contained in:
parent
aa911122fe
commit
d4df640d18
5 changed files with 11 additions and 11 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue