<s> from vulyk . models . user import Group , User <EOL> def project_init ( allowed_types ) : <EOL> """<STR_LIT>""" <EOL> if is_initialized ( ) : <EOL> return <EOL> group = Group ( <EOL> id = '<STR_LIT:default>' , <EOL> description = '<STR_LIT>' , <EOL> allowed_types = allowed_types ) <EOL> group . save ( ) <EOL> User . objects . update ( add_to_set__groups = group ) <EOL> def is_initialized ( ) : <EOL> """<STR_LIT>""" <EOL> return Group . objects ( id = '<STR_LIT:default>' ) . count ( ) == <NUM_LIT:1> </s>
