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