<s> """<STR_LIT>""" <EOL> from django . contrib . contenttypes . models import ContentType <EOL> from django . db import models <EOL> class PersonManager ( models . Manager ) : <EOL> def get_query_set ( self ) : <EOL> return super ( PersonManager , self ) . get_query_set ( ) . exclude ( name = "<STR_LIT>" ) <EOL> class SubManager ( models . Manager ) : <EOL> def get_query_set ( self ) : <EOL> return super ( SubManager , self ) . get_query_set ( ) . exclude ( name = "<STR_LIT>" ) <EOL> class Person ( models . Model ) : <EOL> """<STR_LIT>""" <EOL> name = models . CharField ( max_length = <NUM_LIT:50> ) <EOL> objects = PersonManager ( ) <EOL> def __unicode__ ( self ) : <EOL> return self . name <EOL> class Abstract ( models . Model ) : <EOL> """<STR_LIT>""" <EOL> data = models . CharField ( max_length = <NUM_LIT:10> ) <EOL> class Meta : <EOL> abstract = True <EOL> class MyPerson ( Person ) : <EOL> """<STR_LIT>""" <EOL> class Meta : <EOL> proxy = True <EOL> ordering = [ "<STR_LIT:name>" ] <EOL> objects = SubManager ( ) <EOL> other = PersonManager ( ) <EOL> def has_special_name ( self ) : <EOL> return self . name . lower ( ) == "<STR_LIT>" <EOL> class ManagerMixin ( models . Model ) : <EOL> excluder = SubManager ( ) <EOL> class Meta : <EOL> abstract = True <EOL> class OtherPerson ( Person , ManagerMixin ) : <EOL> """<STR_LIT>""" <EOL> class Meta : <EOL> proxy = True <EOL> ordering = [ "<STR_LIT:name>" ] <EOL> class StatusPerson ( MyPerson ) : <EOL> """<STR_LIT>""" <EOL> status = models . CharField ( max_length = <NUM_LIT> ) <EOL> class MyPersonProxy ( MyPerson ) : <EOL> class Meta : <EOL> proxy = True <EOL> class LowerStatusPerson ( MyPersonProxy ) : <EOL> status = models . CharField ( max_length = <NUM_LIT> ) <EOL> class User ( models . Model ) : <EOL> name = models . CharField ( max_length = <NUM_LIT:100> ) <EOL> def __unicode__ ( self ) : <EOL> return self . name <EOL> class UserProxy ( User ) : <EOL> class Meta : <EOL> proxy = True <EOL> class UserProxyProxy ( UserProxy ) : <EOL> class Meta : <EOL> proxy = True <EOL> class Country ( models . Model ) : <EOL> name = models . CharField ( max_length = <NUM_LIT:50> ) <EOL> class State ( models . Model ) : <EOL> name = models . CharField ( max_length = <NUM_LIT:50> ) <EOL> country = models . ForeignKey ( Country ) <EOL> def __unicode__ ( self ) : <EOL> return self . name <EOL> class StateProxy ( State ) : <EOL> class Meta : <EOL> proxy = True <EOL> class BaseUser ( models . Model ) : <EOL> name = models . CharField ( max_length = <NUM_LIT:255> ) <EOL> class TrackerUser ( BaseUser ) : <EOL> status = models . CharField ( max_length = <NUM_LIT:50> ) <EOL> class ProxyTrackerUser ( TrackerUser ) : <EOL> class Meta : <EOL> proxy = True <EOL> class Issue ( models . Model ) : <EOL> summary = models . CharField ( max_length = <NUM_LIT:255> ) <EOL> assignee = models . ForeignKey ( TrackerUser ) <EOL> def __unicode__ ( self ) : <EOL> return '<STR_LIT::>' . join ( ( self . __class__ . __name__ , self . summary , ) ) <EOL> class Bug ( Issue ) : <EOL> version = models . CharField ( max_length = <NUM_LIT:50> ) <EOL> reporter = models . ForeignKey ( BaseUser ) <EOL> class ProxyBug ( Bug ) : <EOL> """<STR_LIT>""" <EOL> class Meta : <EOL> proxy = True <EOL> class ProxyProxyBug ( ProxyBug ) : <EOL> """<STR_LIT>""" <EOL> class Meta : <EOL> proxy = True <EOL> class Improvement ( Issue ) : <EOL> """<STR_LIT>""" <EOL> version = models . CharField ( max_length = <NUM_LIT:50> ) <EOL> reporter = models . ForeignKey ( ProxyTrackerUser ) <EOL> associated_bug = models . ForeignKey ( ProxyProxyBug ) <EOL> class ProxyImprovement ( Improvement ) : <EOL> class Meta : <EOL> proxy = True </s>
