title: django login without password
body: <p>I'm looking for a way how to login without password. During create new user I noticed that, password field has default value empty, but not null. How can I do login with empty password? Because not all user need to have password set.</p>
  <p>models.py</p>
  <pre><code>class user(AbstractUser):
  </code></pre>
  <p>database:</p>
  <pre><code>| username | password       |
  | -------- | -------------- |
  | A        |                |
  | B        | 123            |
  </code></pre>
  <p>views.py</p>
  <pre><code>user = authenticate(request, username='A', password='')
  
  if user is not None:
       login(request, user)
       return redirect('index')
  </code></pre>