old_contents: from .models import Client
  from .models import Company
  from .models import Contact
  from .models import Estimate
  from .models import Invoice
  from .models import Profile
  from .models import Project
  from .models import Task
  from .models import Time
  from django import forms
  
  
  class ClientForm(forms.ModelForm):
      class Meta:
          model = Client
          fields = '__all__'
  
  
  class CompanyForm(forms.ModelForm):
      class Meta:
          model = Company
          fields = '__all__'
  
  
  class ContactForm(forms.ModelForm):
      class Meta:
          model = Contact
          fields = '__all__'
  
  
  class EstimateForm(forms.ModelForm):
      class Meta:
          model = Estimate
          fields = ('document_id', 'issue_date', 'client', 'subject')
  
  
  class InvoiceForm(forms.ModelForm):
      """
      Issue Date, Last Payment Date, Invoice ID, PO Number, Client, Subject,
      Invoice Amount, Paid Amount, Balance, Subtotal, Discount, Tax, Tax2,
      Currency, Currency Symbol, Document Type
      """
  
      class Meta:
          model = Invoice
          fields = ('document_id',
                    'po_number',
                    'project',
                    'issue_date',
                    'subject', )
  
  
  class MailForm(forms.Form):
      subject = forms.CharField()
      message = forms.CharField(widget=forms.Textarea())
  
  
  class ProfileForm(forms.ModelForm):
      class Meta:
          model = Profile
          fields = ('rate', )
  
  
  class ProjectForm(forms.ModelForm):
      class Meta:
          model = Project
          fields = ('active', 'budget', 'client', 'name', 'notes', 'start_date',
                    'end_date', 'task', 'team')
  
  
  class TaskForm(forms.ModelForm):
      class Meta:
          model = Task
          fields = ('active', 'name', 'rate', 'unit')
  
  
  class TimeForm(forms.ModelForm):
      class Meta:
          model = Time
          fields = ('date', 'hours', 'notes', 'client', 'project', 'task',
                    'invoice')
  
new_contents: from .models import Client
  from .models import Company
  from .models import Contact
  from .models import Estimate
  from .models import Invoice
  from .models import Profile
  from .models import Project
  from .models import Task
  from .models import Time
  from django import forms
  
  
  class ClientForm(forms.ModelForm):
      class Meta:
          model = Client
          fields = '__all__'
  
  
  class CompanyForm(forms.ModelForm):
      class Meta:
          model = Company
          fields = '__all__'
  
  
  class ContactForm(forms.ModelForm):
      class Meta:
          model = Contact
          fields = '__all__'
  
  
  class EstimateForm(forms.ModelForm):
      class Meta:
          model = Estimate
          fields = ('document_id', 'issue_date', 'client', 'subject')
  
  
  class InvoiceForm(forms.ModelForm):
      """
      Issue Date, Last Payment Date, Invoice ID, PO Number, Client, Subject,
      Invoice Amount, Paid Amount, Balance, Subtotal, Discount, Tax, Tax2,
      Currency, Currency Symbol, Document Type
      """
  
      class Meta:
          model = Invoice
          fields = ('document_id',
                    'po_number',
                    'project',
                    'issue_date',
                    'subject', )
  
  
  class MailForm(forms.Form):
      subject = forms.CharField()
      message = forms.CharField(widget=forms.Textarea())
  
  
  class ProfileForm(forms.ModelForm):
      class Meta:
          model = Profile
          fields = ('rate', )
  
  
  class ProjectForm(forms.ModelForm):
      class Meta:
          model = Project
          fields = ('active', 'budget', 'client', 'name', 'notes', 'start_date',
                    'end_date', 'task', 'team')
  
  
  class TaskForm(forms.ModelForm):
      class Meta:
          model = Task
          fields = ('active', 'name', 'rate', 'unit')
  
  
  class TimeForm(forms.ModelForm):
      class Meta:
          model = Time
          fields = ('date', 'hours', 'notes', 'client', 'project', 'task')
  
subject: Remove invoice field from time entry form