<s> from django . db import models <EOL> class ExampleModel ( models . Model ) : <EOL> name = models . CharField ( max_length = <NUM_LIT:15> ) <EOL> value = models . BooleanField ( default = False ) <EOL> date_created = models . DateTimeField ( auto_now_add = True ) <EOL> related = models . ForeignKey ( '<STR_LIT>' , blank = True , null = True ) <EOL> relateds = models . ManyToManyField ( '<STR_LIT>' , blank = True ) <EOL> def __unicode__ ( self ) : <EOL> return "<STR_LIT>" % ( self . pk , ) <EOL> def __str__ ( self ) : <EOL> return "<STR_LIT>" % ( self . pk , ) <EOL> def __repr__ ( self ) : <EOL> return "<STR_LIT>" % ( self . pk , self . name , ) <EOL> def get_absolute_url ( self ) : <EOL> return "<STR_LIT>" . format ( pk = self . pk ) <EOL> def get_negative_pk ( self ) : <EOL> return - <NUM_LIT:1> * self . pk <EOL> class RelatedModel ( models . Model ) : <EOL> name = models . CharField ( max_length = <NUM_LIT:15> ) <EOL> def get_absolute_url ( self ) : <EOL> return "<STR_LIT>" . format ( pk = self . pk ) <EOL> class RelatedM2MModel ( models . Model ) : <EOL> name = models . CharField ( max_length = <NUM_LIT:15> ) <EOL> class ReverseRelatedModel ( models . Model ) : <EOL> name = models . CharField ( max_length = <NUM_LIT:15> ) <EOL> example = models . ForeignKey ( '<STR_LIT>' ) </s>
