old_contents: from django import forms
  
  from .models import (
      Contact,
      Note,
      Ticket,
  )
  
  
  class ContactForm(forms.ModelForm):
  
      def __init__(self, *args, **kwargs):
          super(ContactForm, self).__init__(*args, **kwargs)
          for name in ('name', 'address', 'mail', 'url', 'industry'):
              self.fields[name].widget.attrs.update(
                  {'class': 'pure-input-2-3'}
              )
  
      class Meta:
          model = Contact
          fields = (
              "name",
              "address",
              "slug",
              "url",
              "phone",
              "mail",
              "industry",
              "hourly_rate",
          )
  
  
  class NoteForm(forms.ModelForm):
  
      def __init__(self, *args, **kwargs):
          super(NoteForm, self).__init__(*args, **kwargs)
          for name in ('title', 'description'):
              self.fields[name].widget.attrs.update(
                  {'class': 'pure-input-2-3'}
              )
  
      class Meta:
          model = Note
          fields = (
              "title",
              "description",
          )
  
  
  class TicketForm(forms.ModelForm):
  
      def __init__(self, *args, **kwargs):
          super(TicketForm, self).__init__(*args, **kwargs)
          for name in ('title', 'description'):
              self.fields[name].widget.attrs.update(
                  {'class': 'pure-input-2-3'}
              )
  
      class Meta:
          model = Ticket
          fields = (
              "title",
              "description",
              "priority",
              "due",
          )
  
new_contents: from base.form_utils import (
      RequiredFieldForm,
  )
  from .models import (
      Contact,
      Note,
      Ticket,
  )
  
  
  class ContactForm(RequiredFieldForm):
  
      def __init__(self, *args, **kwargs):
          super(ContactForm, self).__init__(*args, **kwargs)
          for name in ('name', 'address', 'mail', 'url', 'industry'):
              self.fields[name].widget.attrs.update(
                  {'class': 'pure-input-2-3'}
              )
  
      class Meta:
          model = Contact
          fields = (
              "name",
              "address",
              "slug",
              "url",
              "phone",
              "mail",
              "industry",
              "hourly_rate",
          )
  
  
  class NoteForm(RequiredFieldForm):
  
      def __init__(self, *args, **kwargs):
          super(NoteForm, self).__init__(*args, **kwargs)
          for name in ('title', 'description'):
              self.fields[name].widget.attrs.update(
                  {'class': 'pure-input-2-3'}
              )
  
      class Meta:
          model = Note
          fields = (
              "title",
              "description",
          )
  
  
  class TicketForm(RequiredFieldForm):
  
      def __init__(self, *args, **kwargs):
          super(TicketForm, self).__init__(*args, **kwargs)
          for name in ('title', 'description'):
              self.fields[name].widget.attrs.update(
                  {'class': 'pure-input-2-3'}
              )
  
      class Meta:
          model = Ticket
          fields = (
              "priority",
              "title",
              "description",
              "due",
          )
  
subject: Use 'RequiredFieldForm'