codekoala/django-axes — pull request #42 by horejsek (2013-04-14 10:48:34+00:00)
Title: Fix getting of username with Django 1.5

In Django 1.5 is username field [defined by USERNAME_FIELD](https://docs.djangoproject.com/en/1.5/topics/auth/customizing/#django.contrib.auth.models.AbstractBaseUser), so you can change it, for example, to e-mail. This pull request use this (but for backward compatibility is used property username first, of course.)