<s> """<STR_LIT>""" <EOL> from django . db import models <EOL> from django . contrib . auth . models import User <EOL> class Tag ( models . Model ) : <EOL> key = models . AutoField ( primary_key = True ) <EOL> name = models . CharField ( max_length = <NUM_LIT> , verbose_name = '<STR_LIT:name>' ) <EOL> slug = models . CharField ( unique = True , max_length = <NUM_LIT> , verbose_name = '<STR_LIT>' ) <EOL> sticky = models . BooleanField ( default = False ) <EOL> meta = models . TextField ( blank = True , verbose_name = '<STR_LIT>' ) <EOL> description = models . TextField ( blank = True , verbose_name = '<STR_LIT:description>' ) <EOL> ref = models . ForeignKey ( '<STR_LIT>' , blank = True , null = True ) <EOL> created = models . DateTimeField ( auto_now_add = True , verbose_name = '<STR_LIT>' ) <EOL> updated = models . DateTimeField ( auto_now = True , verbose_name = '<STR_LIT>' ) <EOL> def __unicode__ ( self ) : <EOL> result = self . name <EOL> return unicode ( result ) <EOL> class Thread ( models . Model ) : <EOL> key = models . AutoField ( primary_key = True ) <EOL> title = models . CharField ( max_length = <NUM_LIT> , verbose_name = '<STR_LIT:title>' ) <EOL> text = models . TextField ( blank = True , verbose_name = '<STR_LIT:text>' ) <EOL> text_html = models . TextField ( blank = True , verbose_name = '<STR_LIT:html>' ) <EOL> Format_Choices = ( <EOL> ( '<STR_LIT:0>' , '<STR_LIT>' ) , <EOL> ( '<STR_LIT:1>' , '<STR_LIT:html>' ) , <EOL> ( '<STR_LIT:2>' , '<STR_LIT>' ) , <EOL> ( '<STR_LIT:3>' , '<STR_LIT>' ) , <EOL> ) <EOL> format = models . CharField ( verbose_name = '<STR_LIT>' , max_length = <NUM_LIT:1> , default = <NUM_LIT:0> , choices = Format_Choices ) <EOL> release = models . IntegerField ( default = <NUM_LIT:0> , verbose_name = '<STR_LIT>' ) <EOL> author = models . ForeignKey ( User , verbose_name = '<STR_LIT>' ) <EOL> tag = models . ForeignKey ( Tag , verbose_name = '<STR_LIT>' ) <EOL> ref = models . ForeignKey ( '<STR_LIT>' , blank = True , null = True ) <EOL> created = models . DateTimeField ( auto_now_add = True , verbose_name = '<STR_LIT>' ) <EOL> updated = models . DateTimeField ( auto_now = True , verbose_name = '<STR_LIT>' ) <EOL> def __unicode__ ( self ) : <EOL> result = self . title <EOL> return unicode ( result ) <EOL> class Favorite ( models . Model ) : <EOL> key = models . AutoField ( primary_key = True ) <EOL> thread = models . ForeignKey ( Thread , verbose_name = '<STR_LIT>' ) <EOL> author = models . ForeignKey ( User , verbose_name = '<STR_LIT>' ) <EOL> created = models . DateTimeField ( auto_now_add = True , verbose_name = '<STR_LIT>' ) <EOL> updated = models . DateTimeField ( auto_now = True , verbose_name = '<STR_LIT>' ) </s>
