#NEWLINE# def forwards( self , orm ) : #NEWLINE# #INDENT# db . create_table ( 'core_publishable' , ( ( 'id' , self . gf ( 'django.db.models.fields.AutoField' ) ( primary_key = True ) ) , ( 'content_type' , self . gf ( 'django.db.models.fields.related.ForeignKey' ) ( to = orm [ 'contenttypes.ContentType' ] ) ) , ( 'category' , self . gf ( 'django.db.models.fields.related.ForeignKey' ) ( to = orm [ 'core.Category' ] ) ) , ( 'title' , self . gf ( 'django.db.models.fields.CharField' ) ( max_length = 255 ) ) , ( 'slug' , self . gf ( 'django.db.models.fields.SlugField' ) ( max_length = 255 , db_index = True ) ) , ( 'source' , self . gf ( 'django.db.models.fields.related.ForeignKey' ) ( to = orm [ 'core.Source' ] , null = True , blank = True ) ) , ( 'photo' , self . gf ( 'django.db.models.fields.related.ForeignKey' ) ( to = orm [ 'photos.Photo' ] , null = True , blank = True ) ) , ( 'description' , self . gf ( 'django.db.models.fields.TextField' ) ( blank = True ) ) , ( 'publish_from' , self . gf ( 'django.db.models.fields.DateTimeField' ) ( default = datetime . datetime ( 3000 , 1 , 1 , 0 , 0 , 0 , 2 ) , db_index = True ) ) ) ) #NEWLINE# db . send_create_signal ( 'core' , [ 'Publishable' ] ) #NEWLINE# db . create_table ( 'core_publishable_authors' , ( ( 'id' , models . AutoField ( verbose_name = 'ID' , primary_key = True , auto_created = True ) ) , ( 'publishable' , models . ForeignKey ( orm [ 'core.publishable' ] , null = False ) ) , ( 'author' , models . ForeignKey ( orm [ 'core.author' ] , null = False ) ) ) ) #NEWLINE# db . create_unique ( 'core_publishable_authors' , [ 'publishable_id' , 'author_id' ] ) #NEWLINE# db . create_table ( 'core_placement' , ( ( 'id' , self . gf ( 'django.db.models.fields.AutoField' ) ( primary_key = True ) ) , ( 'publishable' , self . gf ( 'django.db.models.fields.related.ForeignKey' ) ( to = orm [ 'core.Publishable' ] ) ) , ( 'category' , self . gf ( 'django.db.models.fields.related.ForeignKey' ) ( to = orm [ 'core.Category' ] ) ) , ( 'publish_from' , self . gf ( 'django.db.models.fields.DateTimeField' ) ( ) ) , ( 'publish_to' , self . gf ( 'django.db.models.fields.DateTimeField' ) ( null = True , blank = True ) ) , ( 'slug' , self . gf ( 'django.db.models.fields.SlugField' ) ( db_index = True , max_length = 255 , blank = True ) ) , ( 'static' , self . gf ( 'django.db.models.fields.BooleanField' ) ( default = False ) ) ) ) #NEWLINE# db . send_create_signal ( 'core' , [ 'Placement' ] ) #NEWLINE# db . create_unique ( 'core_placement' , [ 'publishable_id' , 'category_id' ] ) #NEWLINE# db . create_table ( 'core_listing' , ( ( 'id' , self . gf ( 'django.db.models.fields.AutoField' ) ( primary_key = True ) ) , ( 'placement' , self . gf ( 'django.db.models.fields.related.ForeignKey' ) ( to = orm [ 'core.Placement' ] ) ) , ( 'category' , self . gf ( 'django.db.models.fields.related.ForeignKey' ) ( to = orm [ 'core.Category' ] ) ) , ( 'publish_from' , self . gf ( 'django.db.models.fields.DateTimeField' ) ( db_index = True ) ) , ( 'publish_to' , self . gf ( 'django.db.models.fields.DateTimeField' ) ( null = True , blank = True ) ) , ( 'priority_from' , self . gf ( 'django.db.models.fields.DateTimeField' ) ( null = True , blank = True ) ) , ( 'priority_to' , self . gf ( 'django.db.models.fields.DateTimeField' ) ( null = True , blank = True ) ) , ( 'priority_value' , self . gf ( 'django.db.models.fields.IntegerField' ) ( null = True , blank = True ) ) , ( 'commercial' , self . gf ( 'django.db.models.fields.BooleanField' ) ( default = False ) ) ) ) #NEWLINE# db . send_create_signal ( 'core' , [ 'Listing' ] ) #NEWLINE# db . create_table ( 'core_hitcount' , ( ( 'placement' , self . gf ( 'django.db.models.fields.related.ForeignKey' ) ( to = orm [ 'core.Placement' ] , primary_key = True ) ) , ( 'last_seen' , self . gf ( 'django.db.models.fields.DateTimeField' ) ( ) ) , ( 'hits' , self . gf ( 'django.db.models.fields.PositiveIntegerField' ) ( default = 1 ) ) ) ) #NEWLINE# db . send_create_signal ( 'core' , [ 'HitCount' ] ) #NEWLINE# db . create_table ( 'core_related' , ( ( 'id' , self . gf ( 'django.db.models.fields.AutoField' ) ( primary_key = True ) ) , ( 'publishable' , self . gf ( 'django.db.models.fields.related.ForeignKey' ) ( to = orm [ 'core.Publishable' ] ) ) , ( 'related_ct' , self . gf ( 'django.db.models.fields.related.ForeignKey' ) ( to = self [ 'contenttypes.ContentType' ] ) ) , ( 'related_id' , self . gf ( 'django.db.models.fields.IntegerField' ) ( ) ) ) ) #NEWLINE# db . send_create_signal ( 'core' , [ 'Related' ] )