title: How to allow blank password via django-rest-api user create
body: <p>In my case, I need to have one user group which email and password will not be set on user creation. They will not require to auth themselves either.</p>
  <p>I managed to do custom user with a nullable email, but I cannot find a way to allow blank password in API call or Django admin forms. I do not really care much about forms, but I need to have it working via API.</p>
  <p>How could I allow to create a new custom user with a blank password and maybe set it to something meaningful if it comes blank (like set_unusable_password())?</p>
  <p>Thanks!</p>
  <p>My <code>CustomUserManager</code>:</p>
  <pre><code>from django.contrib.auth.base_user import BaseUserManager
  from django.utils.translation import ugettext_lazy as _
  
  
  class CustomUserManager(BaseUserManager):
      def create_user(self, email, password, **extra_fields):
  
          email = self.normalize_email(email)
          user = self.model(email=email, **extra_fields)
          # if password == &quot;&quot;:
          #     user.set_password(None)
          # else:
          user.set_password(password)
          user.save()
          return user
  
      def create_superuser(...
  </code></pre>