<s> from __future__ import unicode_literals <EOL> from django . db import models , migrations <EOL> import django_pgjson . fields <EOL> import django . utils . timezone <EOL> from django . conf import settings <EOL> def create_anonymous ( apps , schema_editor ) : <EOL> User = apps . get_model ( "<STR_LIT>" , "<STR_LIT>" ) <EOL> if not User . objects . filter ( display_name = '<STR_LIT>' ) . exists ( ) : <EOL> User . objects . create ( <EOL> display_name = '<STR_LIT>' , <EOL> password = '<STR_LIT>' , <EOL> email = '<STR_LIT>' <EOL> ) <EOL> class Migration ( migrations . Migration ) : <EOL> replaces = [ ( b'<STR_LIT>' , '<STR_LIT>' ) , ( b'<STR_LIT>' , '<STR_LIT>' ) , ( b'<STR_LIT>' , '<STR_LIT>' ) , ( b'<STR_LIT>' , '<STR_LIT>' ) ] <EOL> dependencies = [ <EOL> ( '<STR_LIT>' , '<STR_LIT>' ) , <EOL> ] <EOL> operations = [ <EOL> migrations . CreateModel ( <EOL> name = '<STR_LIT>' , <EOL> fields = [ <EOL> ( '<STR_LIT:id>' , models . AutoField ( verbose_name = '<STR_LIT>' , serialize = False , auto_created = True , primary_key = True ) ) , <EOL> ( '<STR_LIT:password>' , models . CharField ( max_length = <NUM_LIT> , verbose_name = '<STR_LIT:password>' ) ) , <EOL> ( '<STR_LIT>' , models . DateTimeField ( default = django . utils . timezone . now , verbose_name = '<STR_LIT>' ) ) , <EOL> ( '<STR_LIT:email>' , models . EmailField ( unique = True , max_length = <NUM_LIT> ) ) , <EOL> ( '<STR_LIT>' , models . CharField ( unique = True , max_length = <NUM_LIT:50> ) ) , <EOL> ( '<STR_LIT>' , models . DateTimeField ( default = django . utils . timezone . now ) ) , <EOL> ( '<STR_LIT>' , models . BooleanField ( default = True ) ) , <EOL> ( '<STR_LIT>' , models . BooleanField ( default = False ) ) , <EOL> ] , <EOL> options = { <EOL> '<STR_LIT>' : False , <EOL> } , <EOL> bases = ( models . Model , ) , <EOL> ) , <EOL> migrations . CreateModel ( <EOL> name = '<STR_LIT>' , <EOL> fields = [ <EOL> ( '<STR_LIT:id>' , models . AutoField ( verbose_name = '<STR_LIT>' , serialize = False , auto_created = True , primary_key = True ) ) , <EOL> ( '<STR_LIT:name>' , models . CharField ( max_length = <NUM_LIT:100> ) ) , <EOL> ( '<STR_LIT:description>' , models . TextField ( null = True , blank = True ) ) , <EOL> ( '<STR_LIT>' , models . BooleanField ( default = True ) ) , <EOL> ( '<STR_LIT>' , models . BooleanField ( default = False ) ) , <EOL> ( '<STR_LIT>' , models . ForeignKey ( related_name = '<STR_LIT>' , to = '<STR_LIT>' ) ) , <EOL> ( '<STR_LIT>' , models . ManyToManyField ( to = settings . AUTH_USER_MODEL ) ) , <EOL> ] , <EOL> options = { <EOL> } , <EOL> bases = ( models . Model , ) , <EOL> ) , <EOL> migrations . AddField ( <EOL> model_name = '<STR_LIT>' , <EOL> name = '<STR_LIT>' , <EOL> field = django_pgjson . fields . JsonBField ( null = True , blank = True ) , <EOL> preserve_default = True , <EOL> ) , <EOL> migrations . AddField ( <EOL> model_name = '<STR_LIT>' , <EOL> name = '<STR_LIT>' , <EOL> field = models . TextField ( null = True , blank = True ) , <EOL> preserve_default = True , <EOL> ) , <EOL> migrations . RunPython ( create_anonymous ) , <EOL> ] </s>
