Is there a way to programmatically find which account has been locked out in django-axes?

Issue

I would like to check which accounts have been locked out in django-axes. I know this can be done in admin site, but can I get this in a view.py as well?

Solution

You can actually access django-axes just like any other model object. .objects.all() and then you can do some calculations with that.

Answered By – Petr Ungar

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published