7. Model class Title < ApplicationRecord def title_display '[' + self.name + ']' end end from django.db import models class Title(models.Model): name = models.TextField() sales_date = models.DateField() def title_display(self): return '[' + self.name + ']' 8. Controller(View) class BooklistController < ApplicationController def index @msg = 'djangoはいいぞ。' @titles = Title.all end def detail @msg = '