<s> from __future__ import unicode_literals <EOL> from django . db import models <EOL> from django . utils . encoding import python_2_unicode_compatible <EOL> @ python_2_unicode_compatible <EOL> class Foo ( models . Model ) : <EOL> name = models . CharField ( max_length = <NUM_LIT:50> ) <EOL> friend = models . CharField ( max_length = <NUM_LIT:50> , blank = True ) <EOL> def __str__ ( self ) : <EOL> return "<STR_LIT>" % self . name <EOL> @ python_2_unicode_compatible <EOL> class Bar ( models . Model ) : <EOL> name = models . CharField ( max_length = <NUM_LIT:50> ) <EOL> normal = models . ForeignKey ( Foo , related_name = '<STR_LIT>' ) <EOL> fwd = models . ForeignKey ( "<STR_LIT>" ) <EOL> back = models . ForeignKey ( "<STR_LIT>" ) <EOL> def __str__ ( self ) : <EOL> return "<STR_LIT>" % self . place . name <EOL> @ python_2_unicode_compatible <EOL> class Whiz ( models . Model ) : <EOL> name = models . CharField ( max_length = <NUM_LIT:50> ) <EOL> def __str__ ( self ) : <EOL> return "<STR_LIT>" % self . name <EOL> @ python_2_unicode_compatible <EOL> class Child ( models . Model ) : <EOL> parent = models . OneToOneField ( '<STR_LIT>' ) <EOL> name = models . CharField ( max_length = <NUM_LIT:50> ) <EOL> def __str__ ( self ) : <EOL> return "<STR_LIT>" % self . name <EOL> @ python_2_unicode_compatible <EOL> class Base ( models . Model ) : <EOL> name = models . CharField ( max_length = <NUM_LIT:50> ) <EOL> def __str__ ( self ) : <EOL> return "<STR_LIT>" % self . name <EOL> @ python_2_unicode_compatible <EOL> class Article ( models . Model ) : <EOL> name = models . CharField ( max_length = <NUM_LIT:50> ) <EOL> text = models . TextField ( ) <EOL> submitted_from = models . IPAddressField ( blank = True , null = True ) <EOL> def __str__ ( self ) : <EOL> return "<STR_LIT>" % self . name </s>
