from .models import Author, Book


def get_author_table_class(TableClassVersion):

    class AuthorTable(TableClassVersion):

        class Meta:
            model = Author

    return AuthorTable


def get_book_table_class(TableClassVersion):

    class BookTable(TableClassVersion):
        column_default_show = ['id', 'title', 'author']

        class Meta:
            model = Book

    return BookTable

from .models import Author, Book


def get_author_table_class(TableClassVersion):

    class AuthorTable(TableClassVersion):

        class Meta:
            model = Author

    return AuthorTable


def get_book_table_class(TableClassVersion):

    class BookTable(TableClassVersion):
        column_default_show = ['id', 'title', 'author']

        class Meta:
            model = Book

    return BookTable
