dabapps/django-email-as-username — pull request #48 by sfllaw (2013-03-10 06:19:30+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.

Fixes issue #43.