diff options
| author | Ofir Ovadia | 2015-02-04 16:08:41 +0200 |
|---|---|---|
| committer | Ofir Ovadia | 2015-02-04 16:08:41 +0200 |
| commit | 58e7bbc8ecad8016cc18f7dbd31b235cb515b785 (patch) | |
| tree | 15da031a9587fb2277b1361de8ca39f61b9d5424 /tests/test_routers.py | |
| parent | 46181341d5579cb7a1b07cd7203b2f94b6c9c119 (diff) | |
| download | django-rest-framework-58e7bbc8ecad8016cc18f7dbd31b235cb515b785.tar.bz2 | |
Prefetching the user object when getting the token in TokenAuthentication.
Since the user object is fetched 4 lines after getting Token from the database, this removes a DB query for each token-authenticated request.
Diffstat (limited to 'tests/test_routers.py')
0 files changed, 0 insertions, 0 deletions
