from django.contrib.auth import get_user_model
from django.forms import ModelForm


class UserSettingsForm(ModelForm):
    class Meta:
        model = get_user_model()
        fields = ('first_name',
                  'last_name',
                  'email',)

from django.contrib.auth import get_user_model
from django.forms import ModelForm


class UserSettingsForm(ModelForm):
    class Meta:
        model = get_user_model()
        fields = ('email',)

Remove first_name and last_name from user settings
Remove first_name and last_name from user settings

  from django.contrib.auth import get_user_model
  from django.forms import ModelForm
  
  
  class UserSettingsForm(ModelForm):
      class Meta:
          model = get_user_model()
-         fields = ('first_name',
+         fields = ('email',)
-                   'last_name',
-                   'email',)
  
Remove first_name and last_name from user settings
## Code Before:
from django.contrib.auth import get_user_model
from django.forms import ModelForm


class UserSettingsForm(ModelForm):
    class Meta:
        model = get_user_model()
        fields = ('first_name',
                  'last_name',
                  'email',)

## Instruction:
Remove first_name and last_name from user settings
## Code After:
from django.contrib.auth import get_user_model
from django.forms import ModelForm


class UserSettingsForm(ModelForm):
    class Meta:
        model = get_user_model()
        fields = ('email',)
