How to block user login with certain status in Django

0

I'm using Django 1.11 and views based on classes. My user model is customized and it has a "status" field where it has "enabled, blocked and disabled". I would like to know how I can only allow users to log in and the others are barred.

It's already worth all!

    
asked by anonymous 08.08.2017 / 21:01

0 answers