dabapps/django-email-as-username — pull request #49 by sfllaw (2013-03-11 19:04:08+00:00)
Title: utils.py: _DUPLICATE_USERNAME_ERRORS matches beginning of IntegrityErrors

PostgreSQL 9.1 now spits out more descriptive errors, so we should move
to an re match instead of a simple string match.