Roman Gorbil
1e0aa91952
Fix watch_login with custom username ( #228 )
...
Previously using of custom `get_username` function with disabled IP
lockout caused unhandled exception
Exception("Invalid state requested")
2023-11-09 06:41:49 -06:00
Aleksi Häkli
a1d526f318
PEP8 formatting ( #147 )
...
Run black with Python 2.7 as target version
to unify the code styling and make it more
linter and style guide compliant
2019-11-15 20:22:14 +02:00
Andrei Baryshnikov
3031deb761
Add possibility to use custom utils.get_username_from_request function ( #122 )
...
* Add `DEFENDER_GET_USERNAME_FROM_REQUEST_PATH` setting
This setting allow to override default `get_username_from_request`
function.
* Add `get_username` argument to `watch_login`
To be able to propagate this argument to other utils functions calls
* Minor code-style fixes
* Add example of use of `DEFENDER_GET_USERNAME_FROM_REQUEST_PATH` setting
* Update docs
2018-05-29 10:32:08 -04:00
Mattia Procopio
b985d17beb
Allow decoration of functions beyond the admin login ( #86 )
...
* Allow decoration of functions beyond the admin login
* Exclude tests file from coverage
* Allow installing django 1.11
* Add python 3.6 for testing
2017-06-26 12:23:23 -04:00
Israel Saeta Pérez
a59cbca0f6
Add support for Django 1.11 ( #79 )
2017-06-12 19:10:03 -04:00
Ken Cochrane
92c378bf68
Add Celery option for writing to database
2015-01-03 16:33:51 -05:00
Ken Cochrane
15e6a40e0a
more refactoring to clean up the code
2014-12-31 19:27:18 -05:00
Ken Cochrane
cf136033a1
refactored the code a little, and updated readme to include missing config
2014-12-31 17:00:45 -05:00
Ken Cochrane
15fd65f06b
made the readme more complete
2014-12-31 12:32:56 -05:00
Ken Cochrane
2ee602b9dd
fixed unit tests
2014-12-31 12:19:06 -05:00
Ken Cochrane
6786499ba1
first pass at some unit tests, still not working
2014-12-30 20:17:15 -05:00
Ken Cochrane
859bc4a25d
initial checkin
2014-09-23 17:31:17 -07:00