Exemple #1
0
    def forwards(self, orm):
        if table_exists('news_newscategory'):
            return  # already migrated

        newscategory_data = (
            ('id',
             self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('slug',
             self.gf('django.db.models.fields.SlugField')(max_length=200,
                                                          db_index=True)),
        )
        newscategory_data = newscategory_data + south_trans_data(
            orm=orm,
            trans_data={
                'news.NewsCategory': ('name', ),
            },
        )
        # Adding model 'NewsCategory'
        db.create_table('news_newscategory', newscategory_data)
        db.send_create_signal('news', ['NewsCategory'])

        newsitem_data = (
            ('basecontent_ptr',
             self.gf('django.db.models.fields.related.OneToOneField')(
                 to=orm['base.BaseContent'], unique=True, primary_key=True)),
            ('publish_date',
             self.gf('django.db.models.fields.DateTimeField')(db_index=True,
                                                              null=True,
                                                              blank=True)),
            ('expire_date',
             self.gf('django.db.models.fields.DateTimeField')(db_index=True,
                                                              null=True,
                                                              blank=True)),
        )
        newsitem_data = newsitem_data + south_trans_data(
            orm=orm,
            trans_data={
                'news.NewsItem': ('body', ),
            },
        )
        # Adding model 'NewsItem'
        db.create_table('news_newsitem', newsitem_data)
        db.send_create_signal('news', ['NewsItem'])

        # Adding M2M table for field categories on 'NewsItem'
        db.create_table(
            'news_newsitem_categories',
            (('id',
              models.AutoField(
                  verbose_name='ID', primary_key=True, auto_created=True)),
             ('newsitem', models.ForeignKey(orm['news.newsitem'], null=False)),
             ('newscategory',
              models.ForeignKey(orm['news.newscategory'], null=False))))
        db.create_unique('news_newsitem_categories',
                         ['newsitem_id', 'newscategory_id'])
    def forwards(self, orm):
        if table_exists('banner_bannercategory'):
            return  # already migrated


        bannercategory_data = (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('slug', self.gf('django.db.models.fields.SlugField')(max_length=200, db_index=True)),
        )

        bannercategory_data = bannercategory_data + south_trans_data(
            orm=orm,
            trans_data={
                'banner.BannerCategory': ('name', ),
            },
        )
        # Adding model 'BannerCategory'
        db.create_table('banner_bannercategory', bannercategory_data)
        db.send_create_signal('banner', ['BannerCategory'])

        # Adding M2M table for field categories on 'Banner'
        db.create_table('banner_banner_categories', (
            ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
            ('banner', models.ForeignKey(orm['banner.banner'], null=False)),
            ('bannercategory', models.ForeignKey(orm['banner.bannercategory'], null=False))
        ))
        db.create_unique('banner_banner_categories', ['banner_id', 'bannercategory_id'])
Exemple #3
0
    def forwards(self, orm):
        if table_exists('banner_bannercategory'):
            return  # already migrated

        bannercategory_data = (
            ('id',
             self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('slug',
             self.gf('django.db.models.fields.SlugField')(max_length=200,
                                                          db_index=True)),
        )

        bannercategory_data = bannercategory_data + south_trans_data(
            orm=orm,
            trans_data={
                'banner.BannerCategory': ('name', ),
            },
        )
        # Adding model 'BannerCategory'
        db.create_table('banner_bannercategory', bannercategory_data)
        db.send_create_signal('banner', ['BannerCategory'])

        # Adding M2M table for field categories on 'Banner'
        db.create_table(
            'banner_banner_categories',
            (('id',
              models.AutoField(
                  verbose_name='ID', primary_key=True, auto_created=True)),
             ('banner', models.ForeignKey(orm['banner.banner'], null=False)),
             ('bannercategory',
              models.ForeignKey(orm['banner.bannercategory'], null=False))))
        db.create_unique('banner_banner_categories',
                         ['banner_id', 'bannercategory_id'])
Exemple #4
0
 def forwards(self, orm):
     fields = (
         ('id',
          self.gf('django.db.models.fields.AutoField')(primary_key=True)),
         ('content', self.gf('django.db.models.fields.related.ForeignKey')(
             to=orm['base.BaseContent'], null=True, blank=True)),
         ('external_url',
          self.gf('django.db.models.fields.URLField')(max_length=200,
                                                      null=True,
                                                      blank=True)),
         ('cached_url',
          self.gf('django.db.models.fields.URLField')(max_length=200,
                                                      null=True,
                                                      blank=True)),
         ('order',
          self.gf('django.db.models.fields.IntegerField')(null=True,
                                                          blank=True)),
         ('category',
          self.gf('django.db.models.fields.CharField')(max_length=100)),
     )
     fields += south_trans_data(
         orm=orm,
         trans_data={
             'portal.portallink': ('name', ),
         },
     )
     # Adding model 'PortalLink'
     db.create_table('portal_portallink', fields)
     db.send_create_signal('portal', ['PortalLink'])
 def forwards(self, orm):
     fields = (
         ("id", orm["section.DocumentSection:id"]),
         ("document", orm["section.DocumentSection:document"]),
         ("position", orm["section.DocumentSection:position"]),
     )
     fields += south_trans_data(orm=orm, trans_data={"section.DocumentSection": ("body",)})
     # Adding model 'DocumentSection'
     db.create_table("section_documentsection", fields)
     db.send_create_signal("section", ["DocumentSection"])
    def forwards(self, orm):
        if table_exists('news_newscategory'):
            return  # already migrated

        newscategory_data = (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('slug', self.gf('django.db.models.fields.SlugField')(max_length=200, db_index=True)),
        )
        newscategory_data = newscategory_data + south_trans_data(
            orm=orm,
            trans_data={
                'news.NewsCategory': ('name', ),
            },
        )
        # Adding model 'NewsCategory'
        db.create_table('news_newscategory', newscategory_data)
        db.send_create_signal('news', ['NewsCategory'])

        newsitem_data = (
            ('basecontent_ptr', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['base.BaseContent'], unique=True, primary_key=True)),
            ('publish_date', self.gf('django.db.models.fields.DateTimeField')(db_index=True, null=True, blank=True)),
            ('expire_date', self.gf('django.db.models.fields.DateTimeField')(db_index=True, null=True, blank=True)),
        )
        newsitem_data = newsitem_data + south_trans_data(
            orm=orm,
            trans_data={
                'news.NewsItem': ('body', ),
            },
        )
        # Adding model 'NewsItem'
        db.create_table('news_newsitem', newsitem_data)
        db.send_create_signal('news', ['NewsItem'])

        # Adding M2M table for field categories on 'NewsItem'
        db.create_table('news_newsitem_categories', (
            ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
            ('newsitem', models.ForeignKey(orm['news.newsitem'], null=False)),
            ('newscategory', models.ForeignKey(orm['news.newscategory'], null=False))
        ))
        db.create_unique('news_newsitem_categories', ['newsitem_id', 'newscategory_id'])
 def forwards(self, orm):
     fields = (
         ('id', orm['section.DocumentSection:id']),
         ('document', orm['section.DocumentSection:document']),
         ('position', orm['section.DocumentSection:position']),
     )
     fields += south_trans_data(
         orm=orm,
         trans_data={
             'section.DocumentSection': ('body', ),
         },
     )
     # Adding model 'DocumentSection'
     db.create_table('section_documentsection', fields)
     db.send_create_signal('section', ['DocumentSection'])
    def forwards(self, orm):
        # Adding model 'ForumCategory'
        if table_exists('forum_forumcategory'):
            return  # already migrated
        forumcategory_data = (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('slug', self.gf('django.db.models.fields.SlugField')(max_length=200, db_index=True)),
        )
        forumcategory_data = forumcategory_data + south_trans_data(
            orm=orm,
            trans_data={
                'forum.forumcategory': ('name', ),
            },
        )
        db.create_table('forum_forumcategory', forumcategory_data)
        db.send_create_signal('forum', ['ForumCategory'])

        # Adding model 'Forum'
        db.create_table('forum_forum', (
            ('basecontent_ptr', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['base.BaseContent'], unique=True, primary_key=True)),
            ('category', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['forum.ForumCategory'])),
        ))
        db.send_create_signal('forum', ['Forum'])

        # Adding model 'Thread'
        db.create_table('forum_thread', (
            ('basecontent_ptr', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['base.BaseContent'], unique=True, primary_key=True)),
            ('forum', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['forum.Forum'])),
            ('closed', self.gf('django.db.models.fields.BooleanField')(default=False)),
            ('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['auth.User'])),
        ))
        db.send_create_signal('forum', ['Thread'])

        # Adding model 'ForumThreadComment'
        db.create_table('forum_forumthreadcomment', (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('thread', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['forum.Thread'])),
            ('parent', self.gf('django.db.models.fields.related.ForeignKey')(default=None, related_name='children', blank=True, null=True, to=orm['forum.ForumThreadComment'])),
            ('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['auth.User'])),
            ('title', self.gf('django.db.models.fields.CharField')(max_length=255)),
            ('comment', self.gf('django.db.models.fields.TextField')()),
            ('banned', self.gf('django.db.models.fields.BooleanField')(default=False)),
            ('date_submitted', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)),
            ('date_modified', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)),
            ('ip_address', self.gf('django.db.models.fields.CharField')(max_length=150, null=True, blank=True)),
        ))
        db.send_create_signal('forum', ['ForumThreadComment'])
 def forwards(self, orm):
     fields = (
         ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
         ('content', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['base.BaseContent'], null=True, blank=True)),
         ('external_url', self.gf('django.db.models.fields.URLField')(max_length=200, null=True, blank=True)),
         ('cached_url', self.gf('django.db.models.fields.URLField')(max_length=200, null=True, blank=True)),
         ('order', self.gf('django.db.models.fields.IntegerField')(null=True, blank=True)),
         ('category', self.gf('django.db.models.fields.CharField')(max_length=100)),
     )
     fields += south_trans_data(
         orm=orm,
         trans_data={
             'portal.portallink': ('name', ),
         },
     )
     # Adding model 'PortalLink'
     db.create_table('portal_portallink', fields)
     db.send_create_signal('portal', ['PortalLink'])
    def forwards(self, orm):
        if table_exists('highlight_highlight'):
            return  # no migration needed

        # Adding model 'Highlight'
        data = (('id', orm['highlight.Highlight:id']),
                ('slug', orm['highlight.Highlight:slug']),
                ('status', orm['highlight.Highlight:status']),
                ('main_image', orm['highlight.Highlight:main_image']),
                ('weight', orm['highlight.Highlight:weight']),
                ('related_content', orm['highlight.Highlight:related_content']))
        data = data + south_trans_data(
            orm=orm,
            trans_data={
                'highlight.Highlight': ('name', 'description', 'plain_description', ),
            },
        )
        db.create_table('highlight_highlight', data)
        db.send_create_signal('highlight', ['Highlight'])
Exemple #11
0
    def forwards(self, orm):
        if table_exists('highlight_highlight'):
            return  # no migration needed

        # Adding model 'Highlight'
        data = (('id', orm['highlight.Highlight:id']),
                ('slug', orm['highlight.Highlight:slug']),
                ('status', orm['highlight.Highlight:status']),
                ('main_image', orm['highlight.Highlight:main_image']),
                ('weight', orm['highlight.Highlight:weight']),
                ('related_content',
                 orm['highlight.Highlight:related_content']))
        data = data + south_trans_data(
            orm=orm,
            trans_data={
                'highlight.Highlight': (
                    'name',
                    'description',
                    'plain_description',
                ),
            },
        )
        db.create_table('highlight_highlight', data)
        db.send_create_signal('highlight', ['Highlight'])
Exemple #12
0
    def forwards(self, orm):

        if table_exists('standingout_standingoutcategory'):
            return

        data = (
            ('id', orm['standingout.standingoutcategory:id']),
            ('slug', orm['standingout.standingoutcategory:slug']),
            ('context_variable', orm['standingout.standingoutcategory:context_variable']),
        )

        data = data + south_trans_data(
            orm=orm,
            trans_data={
                'standingout.standingoutcategory': ('name', ),
            },
        )

        # Adding model 'StandingOutCategory'
        db.create_table('standingout_standingoutcategory', data)
        db.send_create_signal('standingout', ['StandingOutCategory'])

        # Adding model 'StandingOut'
        db.create_table('standingout_standingout', (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('obj_content_type', self.gf('django.db.models.fields.related.ForeignKey')(related_name='standingout_objects', to=orm['contenttypes.ContentType'])),
            ('obj_id', self.gf('django.db.models.fields.PositiveIntegerField')(db_index=True)),
            ('related_content_type', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='standingout_relateds', null=True, to=orm['contenttypes.ContentType'])),
            ('related_id', self.gf('django.db.models.fields.PositiveIntegerField')(db_index=True, null=True, blank=True)),
            ('standing_out_category', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['standingout.StandingOutCategory'], null=True, blank=True)),
            ('order', self.gf('django.db.models.fields.IntegerField')(null=True, blank=True)),
        ))
        db.send_create_signal('standingout', ['StandingOut'])

        # Adding unique constraint on 'StandingOut', fields ['obj_content_type', 'obj_id', 'related_content_type', 'related_id', 'standing_out_category']
        db.create_unique('standingout_standingout', ['obj_content_type_id', 'obj_id', 'related_content_type_id', 'related_id', 'standing_out_category_id'])
Exemple #13
0
    def forwards(self, orm):

        # Adding model 'Photo'
        fields = (
            ('basemultimedia_ptr', orm['multimedia.Photo:basemultimedia_ptr']),
            ('image', orm['multimedia.Photo:image']),
            ('plone_uid', orm['multimedia.Photo:plone_uid']),
        )
        fields += south_trans_data(
            orm=orm,
            trans_data={
                'multimedia.photo': ('caption', ),
            },
        )
        db.create_table('multimedia_photo', fields)
        db.send_create_signal('multimedia', ['Photo'])

        # Adding model 'PanoramicView'
        db.create_table('multimedia_panoramicview', (
            ('basemultimedia_ptr', orm['multimedia.PanoramicView:basemultimedia_ptr']),
            ('preview', orm['multimedia.PanoramicView:preview']),
            ('external_url', orm['multimedia.PanoramicView:external_url']),
        ))
        db.send_create_signal('multimedia', ['PanoramicView'])

        # Adding model 'BaseMultimedia'
        db.create_table('multimedia_basemultimedia', (
            ('id', orm['multimedia.BaseMultimedia:id']),
            ('name', orm['multimedia.BaseMultimedia:name']),
            ('original_filename', orm['multimedia.BaseMultimedia:original_filename']),
            ('creation_date', orm['multimedia.BaseMultimedia:creation_date']),
            ('tags', orm['multimedia.BaseMultimedia:tags']),
            ('class_name', orm['multimedia.BaseMultimedia:class_name']),
            ('status', orm['multimedia.BaseMultimedia:status']),
            ('last_editor', orm['multimedia.BaseMultimedia:last_editor']),
            ('authors', orm['multimedia.BaseMultimedia:authors']),
        ))
        db.send_create_signal('multimedia', ['BaseMultimedia'])

        # Adding model 'Video'
        db.create_table('multimedia_video', (
            ('basemultimedia_ptr', orm['multimedia.Video:basemultimedia_ptr']),
            ('file', orm['multimedia.Video:file']),
            ('preview', orm['multimedia.Video:preview']),
            ('external_url', orm['multimedia.Video:external_url']),
            ('plone_uid', orm['multimedia.Video:plone_uid']),
        ))
        db.send_create_signal('multimedia', ['Video'])

        # Adding model 'Audio'
        db.create_table('multimedia_audio', (
            ('basemultimedia_ptr', orm['multimedia.Audio:basemultimedia_ptr']),
            ('file', orm['multimedia.Audio:file']),
        ))
        db.send_create_signal('multimedia', ['Audio'])

        # Adding model 'Image3D'
        db.create_table('multimedia_image3d', (
            ('basemultimedia_ptr', orm['multimedia.Image3D:basemultimedia_ptr']),
            ('file', orm['multimedia.Image3D:file']),
        ))
        db.send_create_signal('multimedia', ['Image3D'])
Exemple #14
0
    def forwards(self, orm):
        fields = (
            ('id', orm['section.BaseSection:id']),
            ('slug', orm['section.BaseSection:slug']),
            ('status', orm['section.BaseSection:status']),
            ('main_image', orm['section.BaseSection:main_image']),
            ('main_menu', orm['section.BaseSection:main_menu']),
            ('secondary_menu', orm['section.BaseSection:secondary_menu']),
            ('interest_menu', orm['section.BaseSection:interest_menu']),
            ('main_menu_template', orm['section.BaseSection:main_menu_template']),
            ('secondary_menu_template', orm['section.BaseSection:secondary_menu_template']),
            ('interest_menu_template', orm['section.BaseSection:interest_menu_template']),
            ('main_content', orm['section.BaseSection:main_content']),
            ('customstyle', orm['section.BaseSection:customstyle']),
        )
        fields += south_trans_data(
            orm=orm,
            trans_data={
                'section.basesection': ('name', 'description', 'plain_description', ),
            },
        )
        # Adding model 'BaseSection'
        db.create_table('section_basesection', fields)
        db.send_create_signal('section', ['BaseSection'])
        
        # Adding model 'ContentLink'
        db.create_table('section_contentlink', (
            ('baselink_ptr', orm['section.ContentLink:baselink_ptr']),
            ('content', orm['section.ContentLink:content']),
        ))
        db.send_create_signal('section', ['ContentLink'])

        fields = (
            ('id', orm['section.Menu:id']),
            ('slug', orm['section.Menu:slug']),
            ('parent', orm['section.Menu:parent']),
            ('url', orm['section.Menu:url']),
            ('lft', orm['section.Menu:lft']),
            ('rght', orm['section.Menu:rght']),
            ('tree_id', orm['section.Menu:tree_id']),
            ('level', orm['section.Menu:level']),
        )
        fields += south_trans_data(
            orm=orm,
            trans_data={
                'section.Menu': ('name', ),
            },
        )
        # Adding model 'Menu'
        db.create_table('section_menu', fields)
        db.send_create_signal('section', ['Menu'])

        # Adding model 'AppSection'
        db.create_table('section_appsection', (
            ('basesection_ptr', orm['section.AppSection:basesection_ptr']),
        ))
        db.send_create_signal('section', ['AppSection'])

        fields = (
            ('basecontent_ptr', orm['section.Document:basecontent_ptr']),
            ('photo', orm['section.Document:photo']),
            ('floatimage', orm['section.Document:floatimage']),
            ('carousel', orm['section.Document:carousel']),
            ('search_form', orm['section.Document:search_form']),
            ('search_form_filters', orm['section.Document:search_form_filters']),
            ('related_section', orm['section.Document:related_section']),
            ('permanent', orm['section.Document:permanent']),
        )
        # Adding model 'Document'
        fields += south_trans_data(
            orm=orm,
            trans_data={
                'section.Document': ('photo_description', ),
            },
        )
        db.create_table('section_document', fields)

        db.send_create_signal('section', ['Document'])

        # Adding model 'Carousel'
        db.create_table('section_carousel', (
            ('id', orm['section.Carousel:id']),
            ('name', orm['section.Carousel:name']),
            ('slug', orm['section.Carousel:slug']),
        ))
        db.send_create_signal('section', ['Carousel'])

        # Adding model 'AbsoluteLink'
        db.create_table('section_absolutelink', (
            ('baselink_ptr', orm['section.AbsoluteLink:baselink_ptr']),
            ('url', orm['section.AbsoluteLink:url']),
        ))
        db.send_create_signal('section', ['AbsoluteLink'])

        # Adding model 'Section'
        db.create_table('section_section', (
            ('basesection_ptr', orm['section.Section:basesection_ptr']),
        ))
        db.send_create_signal('section', ['Section'])

        # Adding model 'BaseLink'
        db.create_table('section_baselink', (
            ('id', orm['section.BaseLink:id']),
            ('menu', orm['section.BaseLink:menu']),
        ))
        db.send_create_signal('section', ['BaseLink'])

        # Adding model 'CustomStyle'
        db.create_table('section_customstyle', (
            ('id', orm['section.CustomStyle:id']),
            ('color_1', orm['section.CustomStyle:color_1']),
            ('color_2', orm['section.CustomStyle:color_2']),
            ('color_3', orm['section.CustomStyle:color_3']),
            ('menu_link_color', orm['section.CustomStyle:menu_link_color']),
            ('searcher_left_arrow', orm['section.CustomStyle:searcher_left_arrow']),
            ('searcher_right_arrow', orm['section.CustomStyle:searcher_right_arrow']),
            ('searcher_tab_image', orm['section.CustomStyle:searcher_tab_image']),
            ('searcher_last_tab_image', orm['section.CustomStyle:searcher_last_tab_image']),
            ('search_results_item_background', orm['section.CustomStyle:search_results_item_background']),
            ('menu_head_background', orm['section.CustomStyle:menu_head_background']),
            ('content_head_background', orm['section.CustomStyle:content_head_background']),
        ))
        db.send_create_signal('section', ['CustomStyle'])

        # Adding ManyToManyField 'Carousel.class_name'
        db.create_table('section_carousel_class_name', (
            ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
            ('carousel', models.ForeignKey(orm.Carousel, null=False)),
            ('contenttype', models.ForeignKey(orm['contenttypes.ContentType'], null=False))
        ))

        # Adding ManyToManyField 'Carousel.photo_list'
        db.create_table('section_carousel_photo_list', (
            ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
            ('carousel', models.ForeignKey(orm.Carousel, null=False)),
            ('photo', models.ForeignKey(orm['multimedia.Photo'], null=False))
        ))

        # Adding ManyToManyField 'Document.videos'
        db.create_table('section_document_videos', (
            ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
            ('document', models.ForeignKey(orm.Document, null=False)),
            ('video', models.ForeignKey(orm['multimedia.Video'], null=False))
        ))

        # Adding ManyToManyField 'BaseSection.related_content'
        db.create_table('section_basesection_related_content', (
            ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
            ('basesection', models.ForeignKey(orm.BaseSection, null=False)),
            ('basecontent', models.ForeignKey(orm['base.BaseContent'], null=False))
        ))
Exemple #15
0
    def forwards(self, orm):
        if table_exists('contactform_contactform'):
            return

        # Adding model 'ContactForm'
        contactform_data = (
            ('id',
             self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('email',
             self.gf('plugins.contactform.fields.ModelMultiEmailField')(
                 default='webmaster@localhost')),
            ('bcc', self.gf('plugins.contactform.fields.ModelMultiEmailField')(
                blank=True)),
            ('redirect_to',
             self.gf('django.db.models.fields.CharField')(max_length=200,
                                                          blank=True)),
            ('subject_fixed',
             self.gf('django.db.models.fields.BooleanField')(default=False)),
            ('reset_button',
             self.gf('django.db.models.fields.BooleanField')(default=False)),
            ('captcha',
             self.gf('django.db.models.fields.BooleanField')(default=True)),
            ('sender_email',
             self.gf('django.db.models.fields.BooleanField')(default=False)),
        )
        contactform_data = contactform_data + south_trans_data(
            orm=orm,
            trans_data={
                'contactform.ContactForm': (
                    'description',
                    'sent_msg',
                    'reset_msg',
                    'submit_msg',
                    'subject',
                    'title',
                ),
            },
        )
        db.create_table('contactform_contactform', contactform_data)
        db.send_create_signal('contactform', ['ContactForm'])

        # Adding M2M table for field content on 'ContactForm'
        db.create_table(
            'contactform_contactform_content',
            (('id',
              models.AutoField(
                  verbose_name='ID', primary_key=True, auto_created=True)),
             ('contactform',
              models.ForeignKey(orm['contactform.contactform'], null=False)),
             ('basecontent',
              models.ForeignKey(orm['base.basecontent'], null=False))))
        db.create_unique('contactform_contactform_content',
                         ['contactform_id', 'basecontent_id'])

        # Adding model 'ContactFormOpt'
        contactform_contactformopt_data = (
            ('id',
             self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('field_type',
             self.gf('django.db.models.fields.CharField')(max_length=20)),
            ('order',
             self.gf('django.db.models.fields.IntegerField')(null=True,
                                                             blank=True)),
            ('required',
             self.gf('django.db.models.fields.BooleanField')(default=False)),
            ('contact_form',
             self.gf('django.db.models.fields.related.ForeignKey')(
                 related_name='opts', to=orm['contactform.ContactForm'])),
        )
        contactform_contactformopt_data = contactform_contactformopt_data + south_trans_data(
            orm=orm,
            trans_data={
                'contactform.ContactFormOpt': (
                    'label',
                    'help_text',
                ),
            },
        )
        db.create_table('contactform_contactformopt',
                        contactform_contactformopt_data)
        db.send_create_signal('contactform', ['ContactFormOpt'])

        # Adding model 'ContactFormSelectOpt'
        contactform_contactformselectopt_data = (
            ('id',
             self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('value',
             self.gf('django.db.models.fields.CharField')(max_length=200)),
            ('option', self.gf('django.db.models.fields.related.ForeignKey')(
                related_name=u'choices',
                to=orm['contactform.ContactFormOpt'])),
        )
        contactform_contactformselectopt_data = contactform_contactformselectopt_data + south_trans_data(
            orm=orm,
            trans_data={
                'contactform.ContactFormSelectOpt': ('label', ),
            },
        )
        db.create_table('contactform_contactformselectopt',
                        contactform_contactformselectopt_data)
        db.send_create_signal('contactform', ['ContactFormSelectOpt'])

        # Adding model 'SentContactForm'
        db.create_table('contactform_sentcontactform', (
            ('id',
             self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('contact_form',
             self.gf('django.db.models.fields.related.ForeignKey')(
                 to=orm['contactform.ContactForm'])),
            ('sender', self.gf('django.db.models.fields.related.ForeignKey')(
                to=orm['auth.User'], null=True, blank=True)),
            ('sent_msg', self.gf('merengue.base.dbfields.JSONField')()),
            ('sent_date', self.gf('django.db.models.fields.DateTimeField')(
                auto_now_add=True, blank=True)),
        ))
        db.send_create_signal('contactform', ['SentContactForm'])
Exemple #16
0
    def forwards(self, orm):
        # Adding model 'Workflow'
        data = (('id', orm['workflow.Workflow:id']),
                ('slug', orm['workflow.Workflow:slug']),
                ('initial_state', orm['workflow.Workflow:initial_state']))
        data = data + south_trans_data(
            orm=orm,
            trans_data={
                'workflow.Workflow': ('name', ),
            },
        )
        db.create_table('workflow_workflow', data)
        db.send_create_signal('workflow', ['Workflow'])

        # Adding model 'State'
        data = (('id', orm['workflow.State:id']),
                ('slug', orm['workflow.State:slug']),
                ('workflow', orm['workflow.State:workflow']))
        data = data + south_trans_data(
            orm=orm,
            trans_data={
                'workflow.State': ('name', ),
            },
        )
        db.create_table('workflow_state', data)
        db.send_create_signal('workflow', ['State'])

        # Adding M2M table for field transitions on 'State'
        db.create_table('workflow_state_transitions', (
            ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
            ('state', models.ForeignKey(orm['workflow.state'], null=False)),
            ('transition', models.ForeignKey(orm['workflow.transition'], null=False))
        ))
        db.create_unique('workflow_state_transitions', ['state_id', 'transition_id'])

        # Adding model 'Transition'
        data = (('id', orm['workflow.Transition:id']),
                ('slug', orm['workflow.Transition:slug']),
                ('workflow', orm['workflow.Transition:workflow']),
                ('destination', orm['workflow.Transition:destination']),
                ('permission', orm['workflow.Transition:permission']))
        data = data + south_trans_data(
            orm=orm,
            trans_data={
                'workflow.Transition': ('name', ),
            },
        )
        db.create_table('workflow_transition', data)
        db.send_create_signal('workflow', ['Transition'])

        # Adding model 'WorkflowModelRelation'
        db.create_table('workflow_workflowmodelrelation', (
            ('id', orm['workflow.WorkflowModelRelation:id']),
            ('content_type', orm['workflow.WorkflowModelRelation:content_type']),
            ('workflow', orm['workflow.WorkflowModelRelation:workflow']),
        ))
        db.send_create_signal('workflow', ['WorkflowModelRelation'])

        # Adding model 'WorkflowPermissionRelation'
        db.create_table('workflow_workflowpermissionrelation', (
            ('id', orm['workflow.WorkflowPermissionRelation:id']),
            ('workflow', orm['workflow.WorkflowPermissionRelation:workflow']),
            ('permission', orm['workflow.WorkflowPermissionRelation:permission']),
        ))
        db.send_create_signal('workflow', ['WorkflowPermissionRelation'])

        # Adding unique constraint on 'WorkflowPermissionRelation', fields ['workflow', 'permission']
        db.create_unique('workflow_workflowpermissionrelation', ['workflow_id', 'permission_id'])

        # Adding model 'StateInheritanceBlock'
        db.create_table('workflow_stateinheritanceblock', (
            ('id', orm['workflow.StateInheritanceBlock:id']),
            ('state', orm['workflow.StateInheritanceBlock:state']),
            ('permission', orm['workflow.StateInheritanceBlock:permission']),
        ))
        db.send_create_signal('workflow', ['StateInheritanceBlock'])

        # Adding model 'StatePermissionRelation'
        db.create_table('workflow_statepermissionrelation', (
            ('id', orm['workflow.StatePermissionRelation:id']),
            ('state', orm['workflow.StatePermissionRelation:state']),
            ('permission', orm['workflow.StatePermissionRelation:permission']),
            ('role', orm['workflow.StatePermissionRelation:role']),
        ))
        db.send_create_signal('workflow', ['StatePermissionRelation'])
Exemple #17
0
    def forwards(self, orm):
        # Adding model 'ForumCategory'
        if table_exists('forum_forumcategory'):
            return  # already migrated
        forumcategory_data = (
            ('id',
             self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('slug',
             self.gf('django.db.models.fields.SlugField')(max_length=200,
                                                          db_index=True)),
        )
        forumcategory_data = forumcategory_data + south_trans_data(
            orm=orm,
            trans_data={
                'forum.forumcategory': ('name', ),
            },
        )
        db.create_table('forum_forumcategory', forumcategory_data)
        db.send_create_signal('forum', ['ForumCategory'])

        # Adding model 'Forum'
        db.create_table('forum_forum', (
            ('basecontent_ptr',
             self.gf('django.db.models.fields.related.OneToOneField')(
                 to=orm['base.BaseContent'], unique=True, primary_key=True)),
            ('category', self.gf('django.db.models.fields.related.ForeignKey')(
                to=orm['forum.ForumCategory'])),
        ))
        db.send_create_signal('forum', ['Forum'])

        # Adding model 'Thread'
        db.create_table('forum_thread', (
            ('basecontent_ptr',
             self.gf('django.db.models.fields.related.OneToOneField')(
                 to=orm['base.BaseContent'], unique=True, primary_key=True)),
            ('forum', self.gf('django.db.models.fields.related.ForeignKey')(
                to=orm['forum.Forum'])),
            ('closed',
             self.gf('django.db.models.fields.BooleanField')(default=False)),
            ('user', self.gf('django.db.models.fields.related.ForeignKey')(
                to=orm['auth.User'])),
        ))
        db.send_create_signal('forum', ['Thread'])

        # Adding model 'ForumThreadComment'
        db.create_table('forum_forumthreadcomment', (
            ('id',
             self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('thread', self.gf('django.db.models.fields.related.ForeignKey')(
                to=orm['forum.Thread'])),
            ('parent', self.gf('django.db.models.fields.related.ForeignKey')(
                default=None,
                related_name='children',
                blank=True,
                null=True,
                to=orm['forum.ForumThreadComment'])),
            ('user', self.gf('django.db.models.fields.related.ForeignKey')(
                to=orm['auth.User'])),
            ('title',
             self.gf('django.db.models.fields.CharField')(max_length=255)),
            ('comment', self.gf('django.db.models.fields.TextField')()),
            ('banned',
             self.gf('django.db.models.fields.BooleanField')(default=False)),
            ('date_submitted',
             self.gf('django.db.models.fields.DateTimeField')(
                 default=datetime.datetime.now)),
            ('date_modified', self.gf('django.db.models.fields.DateTimeField')(
                default=datetime.datetime.now)),
            ('ip_address', self.gf('django.db.models.fields.CharField')(
                max_length=150, null=True, blank=True)),
        ))
        db.send_create_signal('forum', ['ForumThreadComment'])
Exemple #18
0
    def forwards(self, orm):
        # Adding model 'Location'
        if settings.USE_GIS:
            db.create_table('places_location', (
                ('id', orm['places.Location:id']),
                ('main_location', orm['places.Location:main_location']),
                ('address', orm['places.Location:address']),
                ('postal_code', orm['places.Location:postal_code']),
            ))
            db.send_create_signal('places', ['Location'])

        # Adding model 'ContactInfo'
        db.create_table('base_contactinfo', (
            ('id', orm['base.ContactInfo:id']),
            ('contact_email', orm['base.ContactInfo:contact_email']),
            ('contact_email2', orm['base.ContactInfo:contact_email2']),
            ('url', orm['base.ContactInfo:url']),
            ('phone', orm['base.ContactInfo:phone']),
            ('phone2', orm['base.ContactInfo:phone2']),
            ('fax', orm['base.ContactInfo:fax']),
        ))
        db.send_create_signal('base', ['ContactInfo'])

        # Adding model 'BaseContent'
        data = (('id', orm['base.BaseContent:id']),
                ('slug', orm['base.BaseContent:slug']),
                ('status', orm['base.BaseContent:status']),
                ('main_image', orm['base.BaseContent:main_image']),
                ('contact_info', orm['base.BaseContent:contact_info']),
                ('creation_date', orm['base.BaseContent:creation_date']),
                ('modification_date', orm['base.BaseContent:modification_date']),
                ('user_modification_date', orm['base.BaseContent:user_modification_date']),
                ('last_editor', orm['base.BaseContent:last_editor']),
                ('tags', orm['base.BaseContent:tags']),
                ('class_name', orm['base.BaseContent:class_name']),
                ('rank', orm['base.BaseContent:rank']))
        if settings.USE_GIS:
            gis_data = (('map_icon', orm['base.BaseContent:map_icon']),
                        ('is_autolocated', orm['base.BaseContent:is_autolocated']),
                        ('location', orm['base.BaseContent:location']))
            data = data + gis_data
        data = data + south_trans_data(
            orm=orm,
            trans_data={
                'base.BaseContent': ('name', 'description', 'plain_description', ),
            },
        )
        db.create_table('base_basecontent', data)
        db.send_create_signal('base', ['BaseContent'])

        # Adding model 'MultimediaRelation'
        db.create_table('base_multimediarelation', (
            ('id', orm['base.MultimediaRelation:id']),
            ('content', orm['base.MultimediaRelation:content']),
            ('multimedia', orm['base.MultimediaRelation:multimedia']),
            ('is_featured', orm['base.MultimediaRelation:is_featured']),
            ('order', orm['base.MultimediaRelation:order']),
        ))
        db.send_create_signal('base', ['MultimediaRelation'])

        # Adding ManyToManyField 'BaseContent.owners'
        db.create_table('base_basecontent_owners', (
            ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
            ('basecontent', models.ForeignKey(orm.BaseContent, null=False)),
            ('user', models.ForeignKey(orm['auth.User'], null=False))
        ))

        # Adding ManyToManyField 'BaseContent.related_items'
        db.create_table('base_basecontent_related_items', (
            ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
            ('from_basecontent', models.ForeignKey(orm.BaseContent, null=False)),
            ('to_basecontent', models.ForeignKey(orm.BaseContent, null=False))
        ))

        # Creating unique_together for [content, multimedia] on MultimediaRelation.
        db.create_unique('base_multimediarelation', ['content_id', 'multimedia_id'])
    def forwards(self, orm):
        if table_exists("contactform_contactform"):
            return

        # Adding model 'ContactForm'
        contactform_data = (
            ("id", self.gf("django.db.models.fields.AutoField")(primary_key=True)),
            ("email", self.gf("plugins.contactform.fields.ModelMultiEmailField")(default="webmaster@localhost")),
            ("bcc", self.gf("plugins.contactform.fields.ModelMultiEmailField")(blank=True)),
            ("redirect_to", self.gf("django.db.models.fields.CharField")(max_length=200, blank=True)),
            ("subject_fixed", self.gf("django.db.models.fields.BooleanField")(default=False)),
            ("reset_button", self.gf("django.db.models.fields.BooleanField")(default=False)),
            ("captcha", self.gf("django.db.models.fields.BooleanField")(default=True)),
            ("sender_email", self.gf("django.db.models.fields.BooleanField")(default=False)),
        )
        contactform_data = contactform_data + south_trans_data(
            orm=orm,
            trans_data={
                "contactform.ContactForm": ("description", "sent_msg", "reset_msg", "submit_msg", "subject", "title")
            },
        )
        db.create_table("contactform_contactform", contactform_data)
        db.send_create_signal("contactform", ["ContactForm"])

        # Adding M2M table for field content on 'ContactForm'
        db.create_table(
            "contactform_contactform_content",
            (
                ("id", models.AutoField(verbose_name="ID", primary_key=True, auto_created=True)),
                ("contactform", models.ForeignKey(orm["contactform.contactform"], null=False)),
                ("basecontent", models.ForeignKey(orm["base.basecontent"], null=False)),
            ),
        )
        db.create_unique("contactform_contactform_content", ["contactform_id", "basecontent_id"])

        # Adding model 'ContactFormOpt'
        contactform_contactformopt_data = (
            ("id", self.gf("django.db.models.fields.AutoField")(primary_key=True)),
            ("field_type", self.gf("django.db.models.fields.CharField")(max_length=20)),
            ("order", self.gf("django.db.models.fields.IntegerField")(null=True, blank=True)),
            ("required", self.gf("django.db.models.fields.BooleanField")(default=False)),
            (
                "contact_form",
                self.gf("django.db.models.fields.related.ForeignKey")(
                    related_name="opts", to=orm["contactform.ContactForm"]
                ),
            ),
        )
        contactform_contactformopt_data = contactform_contactformopt_data + south_trans_data(
            orm=orm, trans_data={"contactform.ContactFormOpt": ("label", "help_text")}
        )
        db.create_table("contactform_contactformopt", contactform_contactformopt_data)
        db.send_create_signal("contactform", ["ContactFormOpt"])

        # Adding model 'ContactFormSelectOpt'
        contactform_contactformselectopt_data = (
            ("id", self.gf("django.db.models.fields.AutoField")(primary_key=True)),
            ("value", self.gf("django.db.models.fields.CharField")(max_length=200)),
            (
                "option",
                self.gf("django.db.models.fields.related.ForeignKey")(
                    related_name=u"choices", to=orm["contactform.ContactFormOpt"]
                ),
            ),
        )
        contactform_contactformselectopt_data = contactform_contactformselectopt_data + south_trans_data(
            orm=orm, trans_data={"contactform.ContactFormSelectOpt": ("label",)}
        )
        db.create_table("contactform_contactformselectopt", contactform_contactformselectopt_data)
        db.send_create_signal("contactform", ["ContactFormSelectOpt"])

        # Adding model 'SentContactForm'
        db.create_table(
            "contactform_sentcontactform",
            (
                ("id", self.gf("django.db.models.fields.AutoField")(primary_key=True)),
                (
                    "contact_form",
                    self.gf("django.db.models.fields.related.ForeignKey")(to=orm["contactform.ContactForm"]),
                ),
                (
                    "sender",
                    self.gf("django.db.models.fields.related.ForeignKey")(to=orm["auth.User"], null=True, blank=True),
                ),
                ("sent_msg", self.gf("merengue.base.dbfields.JSONField")()),
                ("sent_date", self.gf("django.db.models.fields.DateTimeField")(auto_now_add=True, blank=True)),
            ),
        )
        db.send_create_signal("contactform", ["SentContactForm"])
    def forwards(self, orm):
        if table_exists('contactform_contactform'):
            return

        # Adding model 'ContactForm'
        contactform_data = (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('email', self.gf('plugins.contactform.fields.ModelMultiEmailField')(default='webmaster@localhost')),
            ('bcc', self.gf('plugins.contactform.fields.ModelMultiEmailField')(blank=True)),
            ('redirect_to', self.gf('django.db.models.fields.CharField')(max_length=200, blank=True)),
            ('subject_fixed', self.gf('django.db.models.fields.BooleanField')(default=False)),
            ('reset_button', self.gf('django.db.models.fields.BooleanField')(default=False)),
            ('captcha', self.gf('django.db.models.fields.BooleanField')(default=True)),
            ('sender_email', self.gf('django.db.models.fields.BooleanField')(default=False)),
        )
        contactform_data = contactform_data + south_trans_data(
            orm=orm,
            trans_data={
                'contactform.ContactForm': ('description', 'sent_msg', 'reset_msg', 'submit_msg', 'subject', 'title', ),
            },
        )
        db.create_table('contactform_contactform', contactform_data)
        db.send_create_signal('contactform', ['ContactForm'])

        # Adding M2M table for field content on 'ContactForm'
        db.create_table('contactform_contactform_content', (
            ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
            ('contactform', models.ForeignKey(orm['contactform.contactform'], null=False)),
            ('basecontent', models.ForeignKey(orm['base.basecontent'], null=False))
        ))
        db.create_unique('contactform_contactform_content', ['contactform_id', 'basecontent_id'])

        # Adding model 'ContactFormOpt'
        contactform_contactformopt_data = (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('field_type', self.gf('django.db.models.fields.CharField')(max_length=20)),
            ('order', self.gf('django.db.models.fields.IntegerField')(null=True, blank=True)),
            ('required', self.gf('django.db.models.fields.BooleanField')(default=False)),
            ('contact_form', self.gf('django.db.models.fields.related.ForeignKey')(related_name='opts', to=orm['contactform.ContactForm'])),
        )
        contactform_contactformopt_data = contactform_contactformopt_data + south_trans_data(
            orm=orm,
            trans_data={
                'contactform.ContactFormOpt': ('label', 'help_text', ),
            },
        )
        db.create_table('contactform_contactformopt', contactform_contactformopt_data)
        db.send_create_signal('contactform', ['ContactFormOpt'])

        # Adding model 'ContactFormSelectOpt'
        contactform_contactformselectopt_data = (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('value', self.gf('django.db.models.fields.CharField')(max_length=200)),
            ('option', self.gf('django.db.models.fields.related.ForeignKey')(related_name=u'choices', to=orm['contactform.ContactFormOpt'])),
        )
        contactform_contactformselectopt_data = contactform_contactformselectopt_data + south_trans_data(
            orm=orm,
            trans_data={
                'contactform.ContactFormSelectOpt': ('label', ),
            },
        )
        db.create_table('contactform_contactformselectopt', contactform_contactformselectopt_data)
        db.send_create_signal('contactform', ['ContactFormSelectOpt'])

        # Adding model 'SentContactForm'
        db.create_table('contactform_sentcontactform', (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('contact_form', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['contactform.ContactForm'])),
            ('sender', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['auth.User'], null=True, blank=True)),
            ('sent_msg', self.gf('merengue.base.dbfields.JSONField')()),
            ('sent_date', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
        ))
        db.send_create_signal('contactform', ['SentContactForm'])
    def forwards(self, orm):
        fields = (
            ("id", orm["section.BaseSection:id"]),
            ("slug", orm["section.BaseSection:slug"]),
            ("status", orm["section.BaseSection:status"]),
            ("main_image", orm["section.BaseSection:main_image"]),
            ("main_menu", orm["section.BaseSection:main_menu"]),
            ("secondary_menu", orm["section.BaseSection:secondary_menu"]),
            ("interest_menu", orm["section.BaseSection:interest_menu"]),
            ("main_menu_template", orm["section.BaseSection:main_menu_template"]),
            ("secondary_menu_template", orm["section.BaseSection:secondary_menu_template"]),
            ("interest_menu_template", orm["section.BaseSection:interest_menu_template"]),
            ("main_content", orm["section.BaseSection:main_content"]),
            ("customstyle", orm["section.BaseSection:customstyle"]),
        )
        fields += south_trans_data(
            orm=orm, trans_data={"section.basesection": ("name", "description", "plain_description")}
        )
        # Adding model 'BaseSection'
        db.create_table("section_basesection", fields)
        db.send_create_signal("section", ["BaseSection"])

        # Adding model 'ContentLink'
        db.create_table(
            "section_contentlink",
            (
                ("baselink_ptr", orm["section.ContentLink:baselink_ptr"]),
                ("content", orm["section.ContentLink:content"]),
            ),
        )
        db.send_create_signal("section", ["ContentLink"])

        fields = (
            ("id", orm["section.Menu:id"]),
            ("slug", orm["section.Menu:slug"]),
            ("parent", orm["section.Menu:parent"]),
            ("url", orm["section.Menu:url"]),
            ("lft", orm["section.Menu:lft"]),
            ("rght", orm["section.Menu:rght"]),
            ("tree_id", orm["section.Menu:tree_id"]),
            ("level", orm["section.Menu:level"]),
        )
        fields += south_trans_data(orm=orm, trans_data={"section.Menu": ("name",)})
        # Adding model 'Menu'
        db.create_table("section_menu", fields)
        db.send_create_signal("section", ["Menu"])

        # Adding model 'AppSection'
        db.create_table("section_appsection", (("basesection_ptr", orm["section.AppSection:basesection_ptr"]),))
        db.send_create_signal("section", ["AppSection"])

        fields = (
            ("basecontent_ptr", orm["section.Document:basecontent_ptr"]),
            ("photo", orm["section.Document:photo"]),
            ("floatimage", orm["section.Document:floatimage"]),
            ("carousel", orm["section.Document:carousel"]),
            ("search_form", orm["section.Document:search_form"]),
            ("search_form_filters", orm["section.Document:search_form_filters"]),
            ("related_section", orm["section.Document:related_section"]),
            ("permanent", orm["section.Document:permanent"]),
        )
        # Adding model 'Document'
        fields += south_trans_data(orm=orm, trans_data={"section.Document": ("photo_description",)})
        db.create_table("section_document", fields)

        db.send_create_signal("section", ["Document"])

        # Adding model 'Carousel'
        db.create_table(
            "section_carousel",
            (
                ("id", orm["section.Carousel:id"]),
                ("name", orm["section.Carousel:name"]),
                ("slug", orm["section.Carousel:slug"]),
            ),
        )
        db.send_create_signal("section", ["Carousel"])

        # Adding model 'AbsoluteLink'
        db.create_table(
            "section_absolutelink",
            (("baselink_ptr", orm["section.AbsoluteLink:baselink_ptr"]), ("url", orm["section.AbsoluteLink:url"])),
        )
        db.send_create_signal("section", ["AbsoluteLink"])

        # Adding model 'Section'
        db.create_table("section_section", (("basesection_ptr", orm["section.Section:basesection_ptr"]),))
        db.send_create_signal("section", ["Section"])

        # Adding model 'BaseLink'
        db.create_table(
            "section_baselink", (("id", orm["section.BaseLink:id"]), ("menu", orm["section.BaseLink:menu"]))
        )
        db.send_create_signal("section", ["BaseLink"])

        # Adding model 'CustomStyle'
        db.create_table(
            "section_customstyle",
            (
                ("id", orm["section.CustomStyle:id"]),
                ("color_1", orm["section.CustomStyle:color_1"]),
                ("color_2", orm["section.CustomStyle:color_2"]),
                ("color_3", orm["section.CustomStyle:color_3"]),
                ("menu_link_color", orm["section.CustomStyle:menu_link_color"]),
                ("searcher_left_arrow", orm["section.CustomStyle:searcher_left_arrow"]),
                ("searcher_right_arrow", orm["section.CustomStyle:searcher_right_arrow"]),
                ("searcher_tab_image", orm["section.CustomStyle:searcher_tab_image"]),
                ("searcher_last_tab_image", orm["section.CustomStyle:searcher_last_tab_image"]),
                ("search_results_item_background", orm["section.CustomStyle:search_results_item_background"]),
                ("menu_head_background", orm["section.CustomStyle:menu_head_background"]),
                ("content_head_background", orm["section.CustomStyle:content_head_background"]),
            ),
        )
        db.send_create_signal("section", ["CustomStyle"])

        # Adding ManyToManyField 'Carousel.class_name'
        db.create_table(
            "section_carousel_class_name",
            (
                ("id", models.AutoField(verbose_name="ID", primary_key=True, auto_created=True)),
                ("carousel", models.ForeignKey(orm.Carousel, null=False)),
                ("contenttype", models.ForeignKey(orm["contenttypes.ContentType"], null=False)),
            ),
        )

        # Adding ManyToManyField 'Carousel.photo_list'
        db.create_table(
            "section_carousel_photo_list",
            (
                ("id", models.AutoField(verbose_name="ID", primary_key=True, auto_created=True)),
                ("carousel", models.ForeignKey(orm.Carousel, null=False)),
                ("photo", models.ForeignKey(orm["multimedia.Photo"], null=False)),
            ),
        )

        # Adding ManyToManyField 'Document.videos'
        db.create_table(
            "section_document_videos",
            (
                ("id", models.AutoField(verbose_name="ID", primary_key=True, auto_created=True)),
                ("document", models.ForeignKey(orm.Document, null=False)),
                ("video", models.ForeignKey(orm["multimedia.Video"], null=False)),
            ),
        )

        # Adding ManyToManyField 'BaseSection.related_content'
        db.create_table(
            "section_basesection_related_content",
            (
                ("id", models.AutoField(verbose_name="ID", primary_key=True, auto_created=True)),
                ("basesection", models.ForeignKey(orm.BaseSection, null=False)),
                ("basecontent", models.ForeignKey(orm["base.BaseContent"], null=False)),
            ),
        )