title: How to block user login with certain status in Django
body: <p>I'm using Django 1.11 and views based on classes.
  My user model is customized and it has a <code>status</code> field where it has "enabled, blocked and disabled". I'd like to know how I can only allow users to log in and the others are barred.</p>
  
  <p>Thanks!</p>