dabapps/django-email-as-username — pull request #34 by j4mie (2012-09-20 15:58:55+00:00)
Title: Override dumpdata command to un-monkeypatch User model before dumping

See issue #26

This patch adds more un-monkeypatching nastiness to undo the existing monkeypatching nastiness. Nasty.

... but it seems to work.

I haven't added any tests. I did try, but the fact that some of the tests require the monkeypatched model and some required the unmonkeypatched version seemed to screw things up. If anyone can suggest a way to test this, please let me know.