old_contents: # Django
  from django import forms
  
  # Local
  from .models import User
  
  
  class UserCreationForm(forms.ModelForm):
  
      class Meta:
          model = User
          fields = '__all__'
  
      def save(self, commit=True):
          user = super().save(commit=False)
          user.email = self.cleaned_data['person'].email.lower()
          user.name = self.cleaned_data['name'].name
          user.set_password(None)
          if commit:
              user.save()
          return user
  
  
  class UserChangeForm(forms.ModelForm):
  
      class Meta:
          model = User
          fields = '__all__'
  
new_contents: # Django
  from django import forms
  
  # Local
  from .models import User
  
  
  class UserCreationForm(forms.ModelForm):
  
      class Meta:
          model = User
          fields = '__all__'
  
      def save(self, commit=True):
          user = super().save(commit=False)
          user.email = self.cleaned_data['person'].email.lower()
          user.name = self.cleaned_data['person'].name
          user.set_password(None)
          if commit:
              user.save()
          return user
  
  
  class UserChangeForm(forms.ModelForm):
  
      class Meta:
          model = User
          fields = '__all__'
  
subject: Fix 'add user' form in Admin