from django.forms import ModelForm

from .models import Client


class ClientForm(ModelForm):
    class Meta:
        model = Client
        fields = (
            "name",
            "address_line_1",
            "address_line_2",
            "city",
            "postal_code",
            "country",
        )

from django.forms import ModelForm

from .models import Client


class ClientForm(ModelForm):
    class Meta:
        model = Client
        fields = (
            "name",
            "address_line_1",
            "address_line_2",
            "city",
            "postal_code",
            "country",
            "organization",
        )

Add the relationship field to the Client form
Add the relationship field to the Client form

  from django.forms import ModelForm
  
  from .models import Client
  
  
  class ClientForm(ModelForm):
      class Meta:
          model = Client
          fields = (
              "name",
              "address_line_1",
              "address_line_2",
              "city",
              "postal_code",
              "country",
+             "organization",
          )
  
Add the relationship field to the Client form
## Code Before:
from django.forms import ModelForm

from .models import Client


class ClientForm(ModelForm):
    class Meta:
        model = Client
        fields = (
            "name",
            "address_line_1",
            "address_line_2",
            "city",
            "postal_code",
            "country",
        )

## Instruction:
Add the relationship field to the Client form
## Code After:
from django.forms import ModelForm

from .models import Client


class ClientForm(ModelForm):
    class Meta:
        model = Client
        fields = (
            "name",
            "address_line_1",
            "address_line_2",
            "city",
            "postal_code",
            "country",
            "organization",
        )
