old_contents: from django import forms
  from django.conf import settings
  from simplemooc.core.mail import send_mail_template
  from .models import Comment
  
  
  class ContactCourse(forms.Form):
      name = forms.CharField(label='Nome', max_length=100)
      email = forms.EmailField(label='Email')
      message = forms.CharField(
          label='Mensagem/Dúvida',
          widget=forms.Textarea
      )
  
      def send_mail(self, course):
          subject = '[%s] Contato' % course
          context = {
              'name': self.cleaned_data['name'],
              'email': self.cleaned_data['email'],
              'message': self.cleaned_data['message'],
          }
          template_name = 'courses/contact_email.html'
          send_mail_template(
              subject, template_name, context, [settings.CONTACT_EMAIL]
          )
  
  
  class CommentForm(forms.ModelForm):
  
      class Meta:
          model = Comment
          fields = ['comment']
  
new_contents: from django import forms
  from django.conf import settings
  
  from simplemooc.core.mail import send_mail_template
  from .models import (
      Comment,
      LessonTRB,
      Lesson,
      KnowledgeLevel,
      CategoryDimensionCognitiveProcess,
      Course,
      CourseTRB
  )
  
  
  class CourseForm(forms.ModelForm):
  
      class Meta:
          model = Course
          fields = [
              'name',
              'slug',
              'description',
              'about',
              'image',
          ]
  
  
  class CourseTRBForm(CourseForm):
  
      class Meta(CourseForm.Meta):
          model = CourseTRB
  
  
  class LessonForm(forms.ModelForm):
  
      class Meta:
          model = Lesson
          fields = [
              'name',
              'description',
              'number',
              'release_date',
          ]
  
  
  class LessonTRBForm(LessonForm):
  
      class Meta(LessonForm.Meta):
          model = LessonTRB
  
  
  class KnowledgeLevelForm(forms.ModelForm):
  
      class Meta:
          model = KnowledgeLevel
          fields = [
              'name',
              'description',
          ]
  
  
  class CategoryDCPForm(forms.ModelForm):
  
      class Meta:
          model = CategoryDimensionCognitiveProcess
          fields = [
              'name',
              'description',
          ]
  
  
  class ContactCourse(forms.Form):
      name = forms.CharField(label='Nome', max_length=100)
      email = forms.EmailField(label='Email')
      message = forms.CharField(
          label='Mensagem/Dúvida',
          widget=forms.Textarea
      )
  
      def send_mail(self, course):
          subject = '[%s] Contato' % course
          context = {
              'name': self.cleaned_data['name'],
              'email': self.cleaned_data['email'],
              'message': self.cleaned_data['message'],
          }
          template_name = 'courses/contact_email.html'
          send_mail_template(
              subject, template_name, context, [settings.CONTACT_EMAIL]
          )
  
  
  class CommentForm(forms.ModelForm):
  
      class Meta:
          model = Comment
          fields = ['comment']
  
subject: Create forms by the following models: Course, CourseTRB, Lesson, LessonTRB, KnowledgeLevel, CategoryDimensionCognitiveProcess