<s> import datetime <EOL> from django . core import validators <EOL> from django . db import models <EOL> class Review ( models . Model ) : <EOL> author_id = models . IntegerField ( ) <EOL> product_id = models . IntegerField ( ) <EOL> rating = models . PositiveIntegerField ( null = True , validators = [ <EOL> validators . MaxValueValidator ( <NUM_LIT:5> ) , validators . MinValueValidator ( <NUM_LIT:1> ) ] ) <EOL> text = models . TextField ( ) <EOL> created = models . DateTimeField ( default = datetime . datetime . now ) <EOL> def __unicode__ ( self ) : <EOL> return u"<STR_LIT>" % ( self . author_id , <EOL> self . product_id , self . created . strftime ( "<STR_LIT>" ) ) </s>
