andrewgodwin/django — pull request #1 by jMyles (2013-06-27 15:48:26+00:00)
Title: Schema alteration

The makemigrations command was failing for any model which had a field that used a lazy translation object to cast its verbose name. Since AbstractBaseUser does this (its verbose_name is "ugettext_lazy('password')" ), any attempt to migrate a customized User model caused ValueError.

This is a test demonstrating the problem and a possible fix. The fix is a bit crude, since it just typecasts the __proxy__ object with unicode(), causing instant translation.