<s> from django . db import models <EOL> from django . utils import six <EOL> from django . utils . encoding import python_2_unicode_compatible <EOL> from django . utils . translation import ugettext_lazy as _ <EOL> @ python_2_unicode_compatible <EOL> class Site ( models . Model ) : <EOL> domain = models . CharField ( max_length = <NUM_LIT:100> ) <EOL> def __str__ ( self ) : <EOL> return self . domain <EOL> class Article ( models . Model ) : <EOL> """<STR_LIT>""" <EOL> site = models . ForeignKey ( Site , models . CASCADE , related_name = "<STR_LIT>" ) <EOL> title = models . CharField ( max_length = <NUM_LIT:100> ) <EOL> hist = models . CharField ( max_length = <NUM_LIT:100> , verbose_name = _ ( "<STR_LIT>" ) ) <EOL> created = models . DateTimeField ( null = True ) <EOL> def test_from_model ( self ) : <EOL> return "<STR_LIT>" <EOL> def test_from_model_with_override ( self ) : <EOL> return "<STR_LIT>" <EOL> test_from_model_with_override . short_description = "<STR_LIT>" <EOL> class ArticleProxy ( Article ) : <EOL> class Meta : <EOL> proxy = True <EOL> @ python_2_unicode_compatible <EOL> class Count ( models . Model ) : <EOL> num = models . PositiveSmallIntegerField ( ) <EOL> parent = models . ForeignKey ( '<STR_LIT>' , models . CASCADE , null = True ) <EOL> def __str__ ( self ) : <EOL> return six . text_type ( self . num ) <EOL> class Event ( models . Model ) : <EOL> date = models . DateTimeField ( auto_now_add = True ) <EOL> class Location ( models . Model ) : <EOL> event = models . OneToOneField ( Event , models . CASCADE , verbose_name = '<STR_LIT>' ) <EOL> class Guest ( models . Model ) : <EOL> event = models . OneToOneField ( Event , models . CASCADE ) <EOL> name = models . CharField ( max_length = <NUM_LIT:255> ) <EOL> class Meta : <EOL> verbose_name = "<STR_LIT>" <EOL> class EventGuide ( models . Model ) : <EOL> event = models . ForeignKey ( Event , models . DO_NOTHING ) <EOL> class Vehicle ( models . Model ) : <EOL> pass <EOL> class VehicleMixin ( Vehicle ) : <EOL> vehicle = models . OneToOneField ( <EOL> Vehicle , <EOL> models . CASCADE , <EOL> parent_link = True , <EOL> related_name = '<STR_LIT>' , <EOL> ) <EOL> class Meta : <EOL> abstract = True <EOL> class Car ( VehicleMixin ) : <EOL> pass </s>
