<s> from django . db import models <EOL> from django . utils . encoding import python_2_unicode_compatible <EOL> @ python_2_unicode_compatible <EOL> class Article ( models . Model ) : <EOL> title = models . CharField ( max_length = <NUM_LIT:100> ) <EOL> pub_date = models . DateField ( ) <EOL> categories = models . ManyToManyField ( "<STR_LIT>" , related_name = "<STR_LIT>" ) <EOL> def __str__ ( self ) : <EOL> return self . title <EOL> @ python_2_unicode_compatible <EOL> class Comment ( models . Model ) : <EOL> article = models . ForeignKey ( Article , related_name = "<STR_LIT>" ) <EOL> text = models . TextField ( ) <EOL> pub_date = models . DateField ( ) <EOL> approval_date = models . DateField ( null = True ) <EOL> def __str__ ( self ) : <EOL> return '<STR_LIT>' % ( self . article . title , self . pub_date ) <EOL> class Category ( models . Model ) : <EOL> name = models . CharField ( max_length = <NUM_LIT:255> ) </s>
