<s> from django . db import models <EOL> class BlogPost ( models . Model ) : <EOL> """<STR_LIT>""" <EOL> title = models . CharField ( '<STR_LIT>' , max_length = <NUM_LIT:255> ) <EOL> text = models . TextField ( '<STR_LIT>' ) <EOL> class Meta : <EOL> verbose_name = '<STR_LIT>' <EOL> verbose_name_plural = '<STR_LIT>' <EOL> def __unicode__ ( self ) : <EOL> return self . title <EOL> def serialize_fields ( self ) : <EOL> """<STR_LIT>""" <EOL> return [ <EOL> '<STR_LIT:id>' , <EOL> '<STR_LIT:title>' , <EOL> '<STR_LIT:text>' <EOL> ] </s>
