<s> from __future__ import absolute_import , division , print_function , unicode_literals <EOL> import datetime <EOL> from django . db import models <EOL> class MockTag ( models . Model ) : <EOL> name = models . CharField ( max_length = <NUM_LIT:32> ) <EOL> class MockModel ( models . Model ) : <EOL> author = models . CharField ( max_length = <NUM_LIT:255> ) <EOL> foo = models . CharField ( max_length = <NUM_LIT:255> , blank = True ) <EOL> pub_date = models . DateTimeField ( default = datetime . datetime . now ) <EOL> tag = models . ForeignKey ( MockTag ) <EOL> def __unicode__ ( self ) : <EOL> return self . author <EOL> def hello ( self ) : <EOL> return '<STR_LIT>' <EOL> class AnotherMockModel ( models . Model ) : <EOL> author = models . CharField ( max_length = <NUM_LIT:255> ) <EOL> pub_date = models . DateTimeField ( default = datetime . datetime . now ) <EOL> def __unicode__ ( self ) : <EOL> return self . author <EOL> class AThirdMockModel ( AnotherMockModel ) : <EOL> average_delay = models . FloatField ( default = <NUM_LIT:0.0> ) <EOL> view_count = models . PositiveIntegerField ( default = <NUM_LIT:0> ) <EOL> class CharPKMockModel ( models . Model ) : <EOL> key = models . CharField ( primary_key = True , max_length = <NUM_LIT:10> ) <EOL> class AFourthMockModel ( models . Model ) : <EOL> author = models . CharField ( max_length = <NUM_LIT:255> ) <EOL> editor = models . CharField ( max_length = <NUM_LIT:255> ) <EOL> pub_date = models . DateTimeField ( default = datetime . datetime . now ) <EOL> def __unicode__ ( self ) : <EOL> return self . author <EOL> class SoftDeleteManager ( models . Manager ) : <EOL> def get_queryset ( self ) : <EOL> return super ( SoftDeleteManager , self ) . get_queryset ( ) . filter ( deleted = False ) <EOL> def complete_set ( self ) : <EOL> return super ( SoftDeleteManager , self ) . get_queryset ( ) <EOL> class AFifthMockModel ( models . Model ) : <EOL> author = models . CharField ( max_length = <NUM_LIT:255> ) <EOL> deleted = models . BooleanField ( default = False ) <EOL> objects = SoftDeleteManager ( ) <EOL> def __unicode__ ( self ) : <EOL> return self . author <EOL> class ASixthMockModel ( models . Model ) : <EOL> name = models . CharField ( max_length = <NUM_LIT:255> ) <EOL> lat = models . FloatField ( ) <EOL> lon = models . FloatField ( ) <EOL> def __unicode__ ( self ) : <EOL> return self . name <EOL> class ScoreMockModel ( models . Model ) : <EOL> score = models . CharField ( max_length = <NUM_LIT:10> ) <EOL> def __unicode__ ( self ) : <EOL> return self . score </s>
