title: Django & Djoser 'NoneType' object has no attribute 'lower' 'NoneType' object has no attribute 'lower'
body: <p>I keep having an error whenever I try to PATCH in order to update a specific user info.
  As per Djoser documentation, the endpoint is located in <strong>/users/me/</strong></p>
  <p><a href="https://djoser.readthedocs.io/en/latest/base_endpoints.html#user" rel="nofollow noreferrer">https://djoser.readthedocs.io/en/latest/base_endpoints.html#user</a></p>
  <p>Everything is working fine except this part.
  I have a Custom User model and overrided the default (again, as per documentation)
  <strong>'current_user': 'accounts.serializers.UserCreateSerializer'</strong>,</p>
  <p>serializer.py</p>
  <pre><code>class UserCreateSerializer(UserCreateSerializer):
      class Meta(UserCreateSerializer.Meta):
          model = User
          read_only_fields = ('password'),
          fields = ('id', 'email', 'first_name', 'last_name', 'is_active')
  
  </code></pre>
  <p>models.py</p>
  <pre><code>class UserAccountManager(BaseUserManager):
      def create_user(self, email, password=None, **extra_fields):
          if not email:
              raise ValueError('Un email est obligatoire')
  
          email = self.normalize_email(email)
          user = self.model(email=email, **extra_fields)
  
          user.set_password(password)
          user.save()
  
          return user
  
      def create_superuser(self, email, password):
          user = self.create_user(email, password)
  
          user.is_superuser = True
          user.is_staff = True
          user.save()
  
          return user
  
  class UserAccount(AbstractBaseUser, PermissionsMixin):
      email = models.EmailField(max_length=255, unique=True)
      first_name = models.CharField(max_length=255)
      last_name = models.CharField(max_length=255)
      phone = models.CharField(max_length=50)
      
      is_active = models.BooleanField(default=True)
      is_staff = models.BooleanField(default=False)
  
      USERNAME_FIELD = 'email'
  
      objects = UserAccountManager()
  
      def get_full_name(self):
          return self.first_name
  
      def get_short_name(self):
          return self.first_name
  
      def __str__(self):
          return self.email
  </code></pre>
  <p>What am I missing?</p>
  <p>Edit with Traceback error</p>
  <blockquote>
  <p>Environment:</p>
  <p>Request Method: PATCH Request URL:
  <a href="http://127.0.0.1:8000/api/v1/users/me/" rel="nofollow noreferrer">http://127.0.0.1:8000/api/v1/users/me/</a></p>
  <p>Django Version: 4.0 Python Version: 3.10.1 Installed Applications:
  ['django.contrib.admin',  'django.contrib.auth',
  'django.contrib.contenttypes',  'django.contrib.sessions',
  'django.contrib.messages',  'django.contrib.staticfiles',
  'rest_framework',  'rest_framework.authtoken',  'corsheaders',
  'djoser',  'companies',  'accounts'] Installed Middleware:
  ['django.middleware.security.SecurityMiddleware',
  'django.contrib.sessions.middleware.SessionMiddleware',
  'corsheaders.middleware.CorsMiddleware',
  'django.middleware.common.CommonMiddleware',
  'django.middleware.csrf.CsrfViewMiddleware',
  'django.contrib.auth.middleware.AuthenticationMiddleware',
  'django.contrib.messages.middleware.MessageMiddleware',
  'django.middleware.clickjacking.XFrameOptionsMiddleware']</p>
  <p>Traceback (most recent call last):   File &quot;C:\Users\minse\Desktop\Code
  snippets\Project\FluchtV0.4\env\lib\site-packages\django\core\handlers\exception.py&quot;,
  line 47, in inner
  response = get_response(request)   File &quot;C:\Users\minse\Desktop\Code
  snippets\Project\FluchtV0.4\env\lib\site-packages\django\core\handlers\base.py&quot;,
  line 181, in _get_response
  response = wrapped_callback(request, *callback_args, **callback_kwargs)   File &quot;C:\Users\minse\Desktop\Code snippets\Project\FluchtV0.4\env\lib\site-packages\django\views\decorators\csrf.py&quot;,
  line 54, in wrapped_view
  return view_func(*args, **kwargs)   File &quot;C:\Users\minse\Desktop\Code
  snippets\Project\FluchtV0.4\env\lib\site-packages\rest_framework\viewsets.py&quot;,
  line 125, in view
  return self.dispatch(request, *args, **kwargs)   File &quot;C:\Users\minse\Desktop\Code
  snippets\Project\FluchtV0.4\env\lib\site-packages\rest_framework\views.py&quot;,
  line 509, in dispatch
  response = self.handle_exception(exc)   File &quot;C:\Users\minse\Desktop\Code
  snippets\Project\FluchtV0.4\env\lib\site-packages\rest_framework\views.py&quot;,
  line 469, in handle_exception
  self.raise_uncaught_exception(exc)   File &quot;C:\Users\minse\Desktop\Code
  snippets\Project\FluchtV0.4\env\lib\site-packages\rest_framework\views.py&quot;,
  line 480, in raise_uncaught_exception
  raise exc   File &quot;C:\Users\minse\Desktop\Code snippets\Project\FluchtV0.4\env\lib\site-packages\rest_framework\views.py&quot;,
  line 506, in dispatch
  response = handler(request, *args, **kwargs)   File &quot;C:\Users\minse\Desktop\Code
  snippets\Project\FluchtV0.4\env\lib\site-packages\djoser\views.py&quot;,
  line 175, in me
  return self.partial_update(request, *args, **kwargs)   File &quot;C:\Users\minse\Desktop\Code
  snippets\Project\FluchtV0.4\env\lib\site-packages\rest_framework\mixins.py&quot;,
  line 82, in partial_update
  return self.update(request, *args, **kwargs)   File &quot;C:\Users\minse\Desktop\Code
  snippets\Project\FluchtV0.4\env\lib\site-packages\rest_framework\mixins.py&quot;,
  line 67, in update
  serializer.is_valid(raise_exception=True)   File &quot;C:\Users\minse\Desktop\Code
  snippets\Project\FluchtV0.4\env\lib\site-packages\rest_framework\serializers.py&quot;,
  line 227, in is_valid
  self._validated_data = self.run_validation(self.initial_data)   File &quot;C:\Users\minse\Desktop\Code
  snippets\Project\FluchtV0.4\env\lib\site-packages\rest_framework\serializers.py&quot;,
  line 429, in run_validation
  value = self.validate(value)   File &quot;C:\Users\minse\Desktop\Code snippets\Project\FluchtV0.4\env\lib\site-packages\djoser\serializers.py&quot;,
  line 54, in validate
  validate_password(password, user)   File &quot;C:\Users\minse\Desktop\Code
  snippets\Project\FluchtV0.4\env\lib\site-packages\django\contrib\auth\password_validation.py&quot;, line 47, in validate_password
  validator.validate(password, user)   File &quot;C:\Users\minse\Desktop\Code
  snippets\Project\FluchtV0.4\env\lib\site-packages\django\contrib\auth\password_validation.py&quot;, line 145, in validate
  if SequenceMatcher(a=password.lower(), b=value_part.lower()).quick_ratio() &gt;= self.max_similarity:</p>
  <p>Exception Type: AttributeError at /api/v1/users/me/ Exception Value:
  'NoneType' object has no attribute 'lower'</p>
  </blockquote>