<s> from __future__ import division , absolute_import , unicode_literals <EOL> from django . db import models <EOL> from django . utils import six <EOL> from django . utils . encoding import python_2_unicode_compatible <EOL> from django . utils . translation import ugettext_lazy as _ <EOL> @ python_2_unicode_compatible <EOL> class Post ( models . Model ) : <EOL> title = models . CharField ( max_length = <NUM_LIT:255> , verbose_name = _ ( '<STR_LIT:title>' ) ) <EOL> body = models . TextField ( verbose_name = _ ( '<STR_LIT:body>' ) ) <EOL> published = models . BooleanField ( default = False , verbose_name = _ ( '<STR_LIT>' ) ) <EOL> published_date = models . DateField ( blank = True , null = True ) <EOL> def __str__ ( self ) : <EOL> return self . title <EOL> class Meta : <EOL> verbose_name = _ ( '<STR_LIT>' ) <EOL> verbose_name_plural = _ ( '<STR_LIT>' ) <EOL> @ python_2_unicode_compatible <EOL> class Comment ( models . Model ) : <EOL> post = models . ForeignKey ( <EOL> Post , verbose_name = _ ( '<STR_LIT>' ) , related_name = "<STR_LIT>" ) <EOL> body = models . TextField ( verbose_name = _ ( '<STR_LIT:body>' ) ) <EOL> def __str__ ( self ) : <EOL> return self . body <EOL> class Meta : <EOL> verbose_name = _ ( '<STR_LIT>' ) <EOL> verbose_name_plural = _ ( '<STR_LIT>' ) <EOL> @ python_2_unicode_compatible <EOL> class Count ( models . Model ) : <EOL> num = models . PositiveSmallIntegerField ( ) <EOL> parent = models . ForeignKey ( '<STR_LIT>' , null = True ) <EOL> def __str__ ( self ) : <EOL> return six . text_type ( self . num ) <EOL> class Event ( models . Model ) : <EOL> date = models . DateTimeField ( auto_now_add = True ) <EOL> class Location ( models . Model ) : <EOL> event = models . OneToOneField ( Event , verbose_name = '<STR_LIT>' ) <EOL> class Guest ( models . Model ) : <EOL> event = models . OneToOneField ( Event ) <EOL> name = models . CharField ( max_length = <NUM_LIT:255> ) <EOL> class Meta : <EOL> verbose_name = "<STR_LIT>" <EOL> class EventGuide ( models . Model ) : <EOL> event = models . ForeignKey ( Event , on_delete = models . DO_NOTHING ) </s>
