<s> from django . db import models <EOL> from django . contrib . auth . models import User <EOL> from django . contrib import admin <EOL> class Blogpost ( models . Model ) : <EOL> title = models . CharField ( max_length = <NUM_LIT:255> ) <EOL> content = models . TextField ( ) <EOL> author = models . ForeignKey ( User , related_name = '<STR_LIT>' ) <EOL> created_on = models . DateTimeField ( auto_now_add = True ) <EOL> def __unicode__ ( self ) : <EOL> return self . title <EOL> admin . site . register ( Blogpost ) </s>
