text: from __future__ import absolute_import
  
  from django import forms
  
  from .models import ContactUs
  
  from crispy_forms.helper import FormHelper
  from crispy_forms.layout import Layout, Fieldset, ButtonHolder, Submit
  
  class ContactUsForm(forms.ModelForm):
      def __init__(self, *args, **kwargs):
          super(ContactUsForm, self).__init__(*args, **kwargs)
  
          # If you pass FormHelper constructor a form instance
          # It builds a default layout with all its fields
          self.helper = FormHelper(self)
  
          # You can dynamically adjust your layout
          self.helper.layout.append(Submit('save', 'save'))
  
      class Meta:
          model = ContactUs
          fields = ["full_name", "email", "message"]
  