brianjaystanley/django-lockout — pull request #2 by Craterdome (2012-05-03 16:18:00+00:00)
Title: Lock out user only for account they are trying to access

That way if a user is locked out, they can still log into a different account. I understand the security logic behind locking them out from all accounts, but having the option to pick is nice.
To that end you may want to add in a setting to the if statement and include it as part of the app.
So along with "if 'username' in kwargs" add "and settings.LOCKOUT_PER_ACCOUNT" or something.

This is the best lockout app for django, so great work and thanks for sharing!