ednapiranha/webtools-workermgmt — comment on commit 4881de8ea90de2474d0bfeda3d4d74348938b7b8
File: apps/users/auth/backends.py line 24
By fwenzel:

also, you can turn the condition around (``if not username...``) so that you can return ``None`` immediately and don't need to open a huge if block.