<s> from django . contrib . contenttypes . models import ContentType <EOL> from django . contrib . contenttypes import generic <EOL> from django . db import models <EOL> from positions . fields import PositionField <EOL> class GenericThing ( models . Model ) : <EOL> name = models . CharField ( max_length = <NUM_LIT> ) <EOL> object_id = models . PositiveIntegerField ( ) <EOL> content_type = models . ForeignKey ( ContentType ) <EOL> content_object = generic . GenericForeignKey ( ) <EOL> position = PositionField ( collection = ( '<STR_LIT>' , '<STR_LIT>' ) ) <EOL> def __unicode__ ( self ) : <EOL> return self . name </s>
