<s> from telegrambot . bot_views . generic import TemplateCommandView , ListCommandView , DetailCommandView , ListDetailCommandView <EOL> from tests . models import Author <EOL> class StartView ( TemplateCommandView ) : <EOL> template_text = "<STR_LIT>" <EOL> class UnknownView ( TemplateCommandView ) : <EOL> template_text = "<STR_LIT>" <EOL> class AuthorListView ( ListCommandView ) : <EOL> template_text = "<STR_LIT>" <EOL> template_keyboard = "<STR_LIT>" <EOL> model = Author <EOL> context_object_name = "<STR_LIT>" <EOL> class AuthorInverseListView ( AuthorListView ) : <EOL> ordering = "<STR_LIT>" <EOL> class AuthorDetailView ( DetailCommandView ) : <EOL> template_text = "<STR_LIT>" <EOL> context_object_name = "<STR_LIT>" <EOL> model = Author <EOL> slug_field = '<STR_LIT:name>' <EOL> class AuthorListQueryView ( AuthorListView ) : <EOL> queryset = Author . objects . all <EOL> class AuthorDetailQueryView ( AuthorDetailView ) : <EOL> queryset = Author . objects <EOL> class AuthorCommandView ( ListDetailCommandView ) : <EOL> list_view_class = AuthorListView <EOL> detail_view_class = AuthorDetailView <EOL> class AuthorCommandQueryView ( ListDetailCommandView ) : <EOL> list_view_class = AuthorListQueryView <EOL> detail_view_class = AuthorDetailQueryView <EOL> class MessageView ( TemplateCommandView ) : <EOL> template_text = "<STR_LIT>" <EOL> class AuthorName ( DetailCommandView ) : <EOL> template_text = "<STR_LIT>" <EOL> context_object_name = "<STR_LIT>" <EOL> model = Author <EOL> slug_field = '<STR_LIT:name>' <EOL> def get_slug ( self , ** kwargs ) : <EOL> return kwargs . get ( '<STR_LIT:name>' , None ) </s>
