1👍
✅
I aborted this method and just manually wrote a migration to modify the database directly:
class Migration(SchemaMigration):
def forwards(self, orm):
db.alter_column(u'app_myuser', 'username', self.gf('django.db.models.fields.CharField')(unique=True,max_length=75))
def backwards(self, orm):
db.alter_column(u'app_myuser', 'username', self.gf('django.db.models.fields.CharField')(unique=True,max_length=30))
Much simpler.
Source:stackexchange.com