<s> """<STR_LIT>""" <EOL> from django . db import models <EOL> from django . utils import six <EOL> from django . utils . encoding import python_2_unicode_compatible <EOL> @ python_2_unicode_compatible <EOL> class DataPoint ( models . Model ) : <EOL> name = models . CharField ( max_length = <NUM_LIT:20> ) <EOL> value = models . CharField ( max_length = <NUM_LIT:20> ) <EOL> another_value = models . CharField ( max_length = <NUM_LIT:20> , blank = True ) <EOL> def __str__ ( self ) : <EOL> return six . text_type ( self . name ) <EOL> @ python_2_unicode_compatible <EOL> class RelatedPoint ( models . Model ) : <EOL> name = models . CharField ( max_length = <NUM_LIT:20> ) <EOL> data = models . ForeignKey ( DataPoint , models . CASCADE ) <EOL> def __str__ ( self ) : <EOL> return six . text_type ( self . name ) <EOL> class A ( models . Model ) : <EOL> x = models . IntegerField ( default = <NUM_LIT:10> ) <EOL> class B ( models . Model ) : <EOL> a = models . ForeignKey ( A , models . CASCADE ) <EOL> y = models . IntegerField ( default = <NUM_LIT:10> ) <EOL> class C ( models . Model ) : <EOL> y = models . IntegerField ( default = <NUM_LIT:10> ) <EOL> class D ( C ) : <EOL> a = models . ForeignKey ( A , models . CASCADE ) <EOL> class Foo ( models . Model ) : <EOL> target = models . CharField ( max_length = <NUM_LIT:10> , unique = True ) <EOL> class Bar ( models . Model ) : <EOL> foo = models . ForeignKey ( Foo , models . CASCADE , to_field = '<STR_LIT:target>' ) </s>
