<s> import datetime <EOL> from django . db import models <EOL> class ArrayField ( models . CharField ) : <EOL> __metaclass__ = models . SubfieldBase <EOL> description = "<STR_LIT>" <EOL> def __init__ ( self , * args , ** kwargs ) : <EOL> kwargs [ '<STR_LIT:max_length>' ] = <NUM_LIT:200> <EOL> super ( ArrayField , self ) . __init__ ( * args , ** kwargs ) <EOL> def to_python ( self , value ) : <EOL> if isinstance ( value , list ) : <EOL> return value <EOL> return value . split ( '<STR_LIT:|>' ) <EOL> def get_prep_value ( self , value ) : <EOL> return '<STR_LIT:|>' . join ( value ) <EOL> class Talk ( models . Model ) : <EOL> topic = models . CharField ( max_length = <NUM_LIT:200> ) <EOL> when = models . DateTimeField ( ) <EOL> tags = ArrayField ( max_length = <NUM_LIT:200> ) <EOL> duration = models . FloatField ( ) </s>
