<s> from django . db import models <EOL> from django . utils . translation import ugettext_lazy as _ <EOL> from django . contrib . contenttypes . models import ContentType <EOL> from django . contrib . contenttypes . fields import GenericForeignKey <EOL> class GenericFlatblock ( models . Model ) : <EOL> slug = models . SlugField ( _ ( '<STR_LIT>' ) , max_length = <NUM_LIT:255> , unique = True ) <EOL> content_type = models . ForeignKey ( ContentType ) <EOL> object_id = models . PositiveIntegerField ( ) <EOL> content_object = GenericForeignKey ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> def __unicode__ ( self ) : <EOL> return self . slug </s>
