old_contents: from django import forms
  
  from .models import Report, Score
  
  
  class ReportForm(forms.ModelForm):
      class Meta:
          model = Report
          fields = ('report_title', 'report_content')
          widget = {
              'report_title': forms.TextInput(attrs={'size': 50}),
              'report_content': forms.Textarea(attrs={'cols': 50, 'rows': 20})
          }
  
  
  class SearchForm(forms.Form):
      search_word = forms.CharField(min_length=1, max_length=30)
  
  
  class ScoreForm(forms.Form):
      class Meta:
          model = Score
          fields = ('score', 'evaluate_point', 'comment',)
          widget = {
              'evaluate_point': forms.TextInput(attrs={'size': 30}),
              'report_content': forms.Textarea(attrs={'cols': 50, 'rows': 20})
          }
  
new_contents: from django import forms
  
  from .models import Report, Score
  
  
  class ReportForm(forms.ModelForm):
      class Meta:
          model = Report
          fields = ('report_title', 'report_content')
          widget = {
              'report_title': forms.TextInput(attrs={'size': 50}),
              'report_content': forms.Textarea(attrs={'cols': 50, 'rows': 20})
          }
  
  
  class SearchForm(forms.Form):
      search_word = forms.CharField(min_length=1, max_length=30)
  
  
  class ScoreForm(forms.Form):
      class Meta:
          model = Score
          fields = ('score', 'evaluate_point', 'comment',)
          widget = {
              'evaluate_point': forms.TextInput(attrs={'size': 30}),
              'comment': forms.Textarea(attrs={'cols': 50, 'rows': 20})
          }
  
subject: modify file : modify form