<s> import datetime <EOL> from south . db import db <EOL> from south . v2 import SchemaMigration <EOL> from django . db import models <EOL> from django . contrib . auth . models import User , Group <EOL> class Migration ( SchemaMigration ) : <EOL> ROLES = [ "<STR_LIT>" , "<STR_LIT>" ] <EOL> def forwards ( self , orm ) : <EOL> [ Group . objects . get_or_create ( name = role ) for role in Migration . ROLES ] <EOL> def backwards ( self , orm ) : <EOL> groups = Group . objects . filter ( name__in = Migration . ROLES ) <EOL> [ group . delete for group in groups ] <EOL> models = { <EOL> } <EOL> complete_apps = [ '<STR_LIT>' ] </s>
