<s> """<STR_LIT>""" <EOL> from django . db import models <EOL> class Tag ( models . Model ) : <EOL> name = models . CharField ( max_length = <NUM_LIT:10> ) <EOL> parent = models . ForeignKey ( '<STR_LIT>' , blank = True , null = True , <EOL> related_name = '<STR_LIT>' ) <EOL> class Meta : <EOL> ordering = [ '<STR_LIT:name>' ] <EOL> def __unicode__ ( self ) : <EOL> return self . name <EOL> class Note ( models . Model ) : <EOL> note = models . CharField ( max_length = <NUM_LIT:100> ) <EOL> misc = models . CharField ( max_length = <NUM_LIT:10> ) <EOL> class Meta : <EOL> ordering = [ '<STR_LIT>' ] <EOL> def __unicode__ ( self ) : <EOL> return self . note <EOL> class ExtraInfo ( models . Model ) : <EOL> info = models . CharField ( max_length = <NUM_LIT:100> ) <EOL> note = models . ForeignKey ( Note ) <EOL> class Meta : <EOL> ordering = [ '<STR_LIT:info>' ] <EOL> def __unicode__ ( self ) : <EOL> return self . info <EOL> class Item ( models . Model ) : <EOL> name = models . CharField ( max_length = <NUM_LIT:10> ) <EOL> tags = models . ManyToManyField ( Tag , blank = True , null = True ) <EOL> note = models . ForeignKey ( Note ) <EOL> class Meta : <EOL> ordering = [ '<STR_LIT>' , '<STR_LIT:name>' ] <EOL> def __unicode__ ( self ) : <EOL> return self . name <EOL> __test__ = { '<STR_LIT>' : """<STR_LIT>""" } </s>
