2 from south.db import db
3 from south.v2 import SchemaMigration
4 from django.db import models
5 from longerusername import MAX_USERNAME_LENGTH
7 class Migration(SchemaMigration):
9 def forwards(self, orm):
10 # Changing field 'User.username'
11 db.alter_column('auth_user', 'username', models.CharField(max_length=MAX_USERNAME_LENGTH()))
14 def backwards(self, orm):
16 # Changing field 'User.username'
17 db.alter_column('auth_user', 'username', models.CharField(max_length=35))
24 complete_apps = ['django_monkeypatches']