• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Python db.send_create_signal函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Python中south.db.db.send_create_signal函数的典型用法代码示例。如果您正苦于以下问题:Python send_create_signal函数的具体用法?Python send_create_signal怎么用?Python send_create_signal使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了send_create_signal函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。

示例1: forwards

    def forwards(self, orm):

        # Adding model 'Decision'
        db.create_table(
            "publicweb_decision",
            (
                ("id", self.gf("django.db.models.fields.AutoField")(primary_key=True)),
                ("short_name", self.gf("django.db.models.fields.CharField")(max_length=255)),
                ("decided_date", self.gf("django.db.models.fields.DateField")(null=True, blank=True)),
                ("effective_date", self.gf("django.db.models.fields.DateField")(null=True, blank=True)),
                ("review_date", self.gf("django.db.models.fields.DateField")(null=True, blank=True)),
                ("expiry_date", self.gf("django.db.models.fields.DateField")(null=True, blank=True)),
                ("budget", self.gf("django.db.models.fields.CharField")(max_length=255, blank=True)),
                ("people", self.gf("django.db.models.fields.CharField")(max_length=255, blank=True)),
                ("description", self.gf("tinymce.models.HTMLField")(blank=True)),
            ),
        )
        db.send_create_signal("publicweb", ["Decision"])

        # Adding model 'Concern'
        db.create_table(
            "publicweb_concern",
            (
                ("id", self.gf("django.db.models.fields.AutoField")(primary_key=True)),
                ("short_name", self.gf("django.db.models.fields.CharField")(max_length=255)),
                ("decision", self.gf("django.db.models.fields.related.ForeignKey")(to=orm["publicweb.Decision"])),
                ("description", self.gf("tinymce.models.HTMLField")(blank=True)),
                ("resolved", self.gf("django.db.models.fields.BooleanField")(default=False)),
            ),
        )
        db.send_create_signal("publicweb", ["Concern"])
开发者ID:indigo79,项目名称:openconsent,代码行数:31,代码来源:0001_initial.py


示例2: forwards

    def forwards(self, orm):
        # Adding model 'UserProfile'
        db.create_table('accounts_userprofile', (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('user', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['auth.User'], unique=True)),
            ('flickr_nsid', self.gf('django.db.models.fields.CharField')(max_length=255, null=True, blank=True)),
            ('flickr_username', self.gf('django.db.models.fields.CharField')(max_length=255, null=True, blank=True)),
            ('flickr_fullname', self.gf('django.db.models.fields.CharField')(max_length=255, null=True, blank=True)),
            ('flickr_oauth_token', self.gf('django.db.models.fields.CharField')(max_length=255, null=True, blank=True)),
            ('flickr_oauth_token_secret', self.gf('django.db.models.fields.CharField')(max_length=255, null=True, blank=True)),
            ('flickr_user', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['flickr.FlickrUser'], unique=True, null=True, blank=True)),
            ('date_create', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
            ('date_update', self.gf('django.db.models.fields.DateTimeField')(auto_now=True, blank=True)),
        ))
        db.send_create_signal('accounts', ['UserProfile'])

        # Adding model 'FlickrContact'
        db.create_table('accounts_flickrcontact', (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['accounts.UserProfile'])),
            ('flickr_user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['flickr.FlickrUser'])),
            ('friend', self.gf('django.db.models.fields.BooleanField')(default=False)),
            ('family', self.gf('django.db.models.fields.BooleanField')(default=False)),
        ))
        db.send_create_signal('accounts', ['FlickrContact'])
开发者ID:cjmartin,项目名称:thisismycam,代码行数:25,代码来源:0001_initial.py


示例3: forwards

    def forwards(self, orm):
        # Adding model 'User'
        db.create_table(u'rt_user_user', (
            (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('username', self.gf('django.db.models.fields.CharField')(max_length=255)),
            ('name', self.gf('django.db.models.fields.CharField')(max_length=255)),
            ('email', self.gf('django.db.models.fields.EmailField')(max_length=75)),
            ('created_at', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
            ('modified_at', self.gf('django.db.models.fields.DateTimeField')(auto_now=True, blank=True)),
        ))
        db.send_create_signal(u'rt_user', ['User'])

        # Adding model 'Group'
        db.create_table(u'rt_user_group', (
            (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('name', self.gf('django.db.models.fields.CharField')(max_length=255)),
            ('created_at', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
            ('modified_at', self.gf('django.db.models.fields.DateTimeField')(auto_now=True, blank=True)),
        ))
        db.send_create_signal(u'rt_user', ['Group'])

        # Adding M2M table for field members on 'Group'
        m2m_table_name = db.shorten_name(u'rt_user_group_members')
        db.create_table(m2m_table_name, (
            ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
            ('group', models.ForeignKey(orm[u'rt_user.group'], null=False)),
            ('user', models.ForeignKey(orm[u'rt_user.user'], null=False))
        ))
        db.create_unique(m2m_table_name, ['group_id', 'user_id'])
开发者ID:kipe,项目名称:RT,代码行数:29,代码来源:0001_initial.py


示例4: forwards

    def forwards(self, orm):

        # Adding model 'FarmerBusinessAdvisor'
        db.create_table('fncs_farmerbusinessadvisor', (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('actor', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['fncs.Actor'])),
        ))
        db.send_create_signal('fncs', ['FarmerBusinessAdvisor'])

        # Adding model 'FBAdvisorRelationShip'
        db.create_table('fncs_fbadvisorrelationship', (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('fba', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['fncs.FarmerBusinessAdvisor'])),
            ('farmer', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['fncs.Farmer'])),
            ('registered_by_actor', self.gf('django.db.models.fields.related.ForeignKey')(related_name='registered_by_actor', null=True, to=orm['fncs.Actor'])),
            ('created_at', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
            ('updated_at', self.gf('django.db.models.fields.DateTimeField')(auto_now=True, blank=True)),
        ))
        db.send_create_signal('fncs', ['FBAdvisorRelationShip'])

        # Adding M2M table for field fbas on 'Farmer'
        db.create_table('fncs_farmer_fbas', (
            ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
            ('farmer', models.ForeignKey(orm['fncs.farmer'], null=False)),
            ('farmerbusinessadvisor', models.ForeignKey(orm['fncs.farmerbusinessadvisor'], null=False))
        ))
        db.create_unique('fncs_farmer_fbas', ['farmer_id', 'farmerbusinessadvisor_id'])
开发者ID:BongoHive,项目名称:magriculture,代码行数:27,代码来源:0029_auto__add_directsale__add_farmerbusinessadvisor__add_fbadvisorrelation.py


示例5: forwards

 def forwards(self, orm):
     # Adding model 'Device'
     db.create_table(u'devices_device', (
         (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
         ('given_name', self.gf('django.db.models.fields.CharField')(max_length=50, null=True, blank=True)),
         ('poll_rate', self.gf('django.db.models.fields.IntegerField')(default=60)),
         ('user', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='devices', null=True, to=orm['auth.User'])),
         ('serial_number', self.gf('django.db.models.fields.IntegerField')(unique=True)),
         ('sim_serial_number', self.gf('django.db.models.fields.IntegerField')(unique=True)),
         ('date_manufactured', self.gf('django.db.models.fields.DateField')()),
         ('date_activated', self.gf('django.db.models.fields.DateField')(null=True, blank=True)),
         ('phone_number', self.gf('django_localflavor_us.models.PhoneNumberField')(max_length=20, blank=True)),
         ('location', self.gf('django.contrib.gis.db.models.fields.PointField')(null=True, blank=True)),
         ('battery_life', self.gf('django.db.models.fields.IntegerField')(null=True, blank=True)),
         ('is_charging', self.gf('django.db.models.fields.NullBooleanField')(null=True, blank=True)),
         ('temperature', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
         ('operating_current', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
         ('power_mode', self.gf('django.db.models.fields.CharField')(max_length=4, null=True, blank=True)),
         ('signal_strength', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
         ('gps_activated', self.gf('django.db.models.fields.BooleanField')(default=False)),
         ('gps_satellite_count', self.gf('django.db.models.fields.IntegerField')(null=True, blank=True)),
         ('last_request', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
         ('is_active', self.gf('django.db.models.fields.BooleanField')(default=False)),
     ))
     db.send_create_signal(u'devices', ['Device'])
开发者ID:sbuggay,项目名称:soletrakr,代码行数:25,代码来源:0003_initial.py


示例6: forwards

    def forwards(self, orm):
        
        # Deleting model 'NodeProductReports'
        db.delete_table('ilsgateway_nodeproductreports')

        # Adding model 'NodeProductReport'
        db.create_table('ilsgateway_nodeproductreport', (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('product', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['ilsgateway.Product'])),
            ('node', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['ilsgateway.Node'])),
            ('report_type', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['ilsgateway.ProductReportType'])),
            ('quantity', self.gf('django.db.models.fields.IntegerField')()),
        ))
        db.send_create_signal('ilsgateway', ['NodeProductReport'])

        # Removing M2M table for field child_nodes on 'Node'
        db.delete_table('ilsgateway_node_child_nodes')

        # Adding M2M table for field child_node on 'Node'
        db.create_table('ilsgateway_node_child_node', (
            ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
            ('from_node', models.ForeignKey(orm['ilsgateway.node'], null=False)),
            ('to_node', models.ForeignKey(orm['ilsgateway.node'], null=False))
        ))
        db.create_unique('ilsgateway_node_child_node', ['from_node_id', 'to_node_id'])
开发者ID:adothompson,项目名称:rapidsms-ilsgateway-app,代码行数:25,代码来源:0013_auto__del_nodeproductreports__add_nodeproductreport.py


示例7: forwards

    def forwards(self, orm):
        # Adding model 'AccessGroup'
        db.create_table('sentry_accessgroup', (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('team', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['sentry.Team'])),
            ('name', self.gf('django.db.models.fields.CharField')(max_length=64)),
            ('type', self.gf('django.db.models.fields.IntegerField')(default=50)),
            ('managed', self.gf('django.db.models.fields.BooleanField')(default=False)),
            ('data', self.gf('django.db.models.fields.TextField')(null=True, blank=True)),
            ('date_added', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)),
        ))
        db.send_create_signal('sentry', ['AccessGroup'])

        # Adding M2M table for field projects on 'AccessGroup'
        db.create_table('sentry_accessgroup_projects', (
            ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
            ('accessgroup', models.ForeignKey(orm['sentry.accessgroup'], null=False)),
            ('project', models.ForeignKey(orm['sentry.project'], null=False))
        ))
        db.create_unique('sentry_accessgroup_projects', ['accessgroup_id', 'project_id'])

        # Adding M2M table for field members on 'AccessGroup'
        db.create_table('sentry_accessgroup_members', (
            ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
            ('accessgroup', models.ForeignKey(orm['sentry.accessgroup'], null=False)),
            ('user', models.ForeignKey(orm['auth.user'], null=False))
        ))
        db.create_unique('sentry_accessgroup_members', ['accessgroup_id', 'user_id'])

        # Adding unique constraint on 'AccessGroup', fields ['team', 'name']
        db.create_unique('sentry_accessgroup', ['team_id', 'name'])
开发者ID:755,项目名称:sentry,代码行数:31,代码来源:0089_auto__add_accessgroup__add_unique_accessgroup_team_name.py


示例8: forwards

    def forwards(self, orm):
        # Adding model 'Service'
        db.create_table(
            u"social_data_service",
            (
                (u"id", self.gf("django.db.models.fields.AutoField")(primary_key=True)),
                ("name", self.gf("django.db.models.fields.CharField")(max_length=64)),
                ("icon", self.gf("django.db.models.fields.CharField")(max_length=128)),
            ),
        )
        db.send_create_signal(u"social_data", ["Service"])

        # Adding model 'Post'
        db.create_table(
            u"social_data_post",
            (
                (u"id", self.gf("django.db.models.fields.AutoField")(primary_key=True)),
                ("service", self.gf("django.db.models.fields.related.ForeignKey")(to=orm["social_data.Service"])),
                ("latitude", self.gf("django.db.models.fields.FloatField")()),
                ("longitude", self.gf("django.db.models.fields.FloatField")()),
                ("text", self.gf("django.db.models.fields.CharField")(max_length=256)),
                ("link", self.gf("django.db.models.fields.CharField")(max_length=256)),
                ("image", self.gf("django.db.models.fields.CharField")(max_length=256)),
                ("timestamp", self.gf("django.db.models.fields.DateTimeField")()),
            ),
        )
        db.send_create_signal(u"social_data", ["Post"])
开发者ID:samprzez,项目名称:chicago_api,代码行数:27,代码来源:0005_initial.py


示例9: forwards

 def forwards(self, orm):
     # Adding model 'Update'
     db.create_table('aggregator_update', (
         ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
         ('timestamp', self.gf('django.db.models.fields.DateTimeField')()),
     ))
     db.send_create_signal('aggregator', ['Update'])
开发者ID:udienz,项目名称:planet.terasi.net,代码行数:7,代码来源:0009_auto__add_update.py


示例10: forwards

 def forwards(self, orm):
     # Adding model 'CalloutUserfield'
     db.create_table(u'actionkit_userdetail_calloutuserfield', (
         (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
         ('name', self.gf('django.db.models.fields.CharField')(max_length=255)),
     ))
     db.send_create_signal(u'actionkit_userdetail', ['CalloutUserfield'])
开发者ID:350dotorg,项目名称:aktivator,代码行数:7,代码来源:0001_initial.py


示例11: forwards

 def forwards(self, orm):
     # Adding model 'CellSample'
     db.create_table(u'rotmic_cellsample', (
         (u'sample_ptr', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['rotmic.Sample'], unique=True, primary_key=True)),
         ('cell', self.gf('django.db.models.fields.related.ForeignKey')(related_name='cell_samples', to=orm['rotmic.CellComponent'])),
     ))
     db.send_create_signal('rotmic', ['CellSample'])
开发者ID:graik,项目名称:rotmic,代码行数:7,代码来源:0005_auto__add_cellsample.py


示例12: forwards

    def forwards(self, orm):
        # Adding model 'Subscriber'
        db.create_table(u'magazine_subscriber', (
            (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('name', self.gf('django.db.models.fields.CharField')(max_length=255)),
            ('email', self.gf('django.db.models.fields.CharField')(max_length=255)),
            ('streetAddress1', self.gf('django.db.models.fields.CharField')(max_length=255)),
            ('streetAddress2', self.gf('django.db.models.fields.CharField')(max_length=255)),
            ('city', self.gf('django.db.models.fields.CharField')(max_length=255)),
            ('state', self.gf('django.db.models.fields.CharField')(max_length=255)),
            ('country', self.gf('django.db.models.fields.CharField')(max_length=255)),
            ('zipCode', self.gf('django.db.models.fields.CharField')(max_length=255)),
            ('customerID', self.gf('django.db.models.fields.CharField')(max_length=255)),
            ('renew', self.gf('django.db.models.fields.BooleanField')()),
            ('subscriptionType', self.gf('django.db.models.fields.CharField')(max_length=255)),
            ('time', self.gf('django.db.models.fields.CharField')(max_length=255)),
        ))
        db.send_create_signal(u'magazine', ['Subscriber'])

        # Adding model 'Donation'
        db.create_table(u'magazine_donation', (
            (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('amount', self.gf('django.db.models.fields.IntegerField')()),
            ('name', self.gf('django.db.models.fields.CharField')(max_length=255)),
            ('email', self.gf('django.db.models.fields.CharField')(max_length=255)),
            ('streetAddress1', self.gf('django.db.models.fields.CharField')(max_length=255)),
            ('streetAddress2', self.gf('django.db.models.fields.CharField')(max_length=255)),
            ('city', self.gf('django.db.models.fields.CharField')(max_length=255)),
            ('state', self.gf('django.db.models.fields.CharField')(max_length=255)),
            ('country', self.gf('django.db.models.fields.CharField')(max_length=255)),
            ('zipCode', self.gf('django.db.models.fields.CharField')(max_length=255)),
            ('customerID', self.gf('django.db.models.fields.CharField')(max_length=255)),
            ('time', self.gf('django.db.models.fields.CharField')(max_length=255)),
        ))
        db.send_create_signal(u'magazine', ['Donation'])
开发者ID:sammysignal,项目名称:advo-sammy,代码行数:35,代码来源:0003_auto__add_subscriber__add_donation.py


示例13: backwards

 def backwards(self, orm):
     # Adding model 'Pic'
     db.create_table(u'exchange_pic', (
         ('image', self.gf('django.db.models.fields.files.ImageField')(max_length=100)),
         (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
     ))
     db.send_create_signal(u'exchange', ['Pic'])
开发者ID:the-viking,项目名称:replay,代码行数:7,代码来源:0006_auto__del_pic.py


示例14: forwards

    def forwards(self, orm):
        
        # Adding model 'Category'
        db.create_table('yadba_category', (
            ('description', self.gf('django.db.models.fields.TextField')()),
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('name', self.gf('django.db.models.fields.CharField')(max_length=255)),
        ))
        db.send_create_signal('yadba', ['Category'])

        # Adding model 'Entry'
        db.create_table('yadba_entry', (
            ('body', self.gf('django.db.models.fields.TextField')()),
            ('tags', self.gf('tagging.fields.TagField')(default='')),
            ('date_updated', self.gf('django.db.models.fields.DateTimeField')(auto_now=True, blank=True)),
            ('title', self.gf('django.db.models.fields.CharField')(max_length=255)),
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('date_posted', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
        ))
        db.send_create_signal('yadba', ['Entry'])

        # Adding M2M table for field categories on 'Entry'
        db.create_table('yadba_entry_categories', (
            ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
            ('entry', models.ForeignKey(orm['yadba.entry'], null=False)),
            ('category', models.ForeignKey(orm['yadba.category'], null=False))
        ))
        db.create_unique('yadba_entry_categories', ['entry_id', 'category_id'])
开发者ID:wraithan,项目名称:ltt_blog,代码行数:28,代码来源:0001_initial.py


示例15: forwards

    def forwards(self, orm):
        # Adding model 'UserProfile'
        db.create_table(u'profiles_userprofile', (
            (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('user', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['auth.User'], unique=True)),
            ('date_of_birth', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
            ('sex', self.gf('django.db.models.fields.CharField')(max_length=1, null=True, blank=True)),
            ('social_security_number', self.gf('django.db.models.fields.CharField')(max_length=11, null=True, blank=True)),
            ('state_id_number', self.gf('django.db.models.fields.CharField')(max_length=8, null=True, blank=True)),
            ('phone_number', self.gf('django.db.models.fields.CharField')(max_length=30, null=True, blank=True)),
            ('parent_phone_number', self.gf('django.db.models.fields.CharField')(max_length=30, null=True, blank=True)),
            ('address', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['schools.Address'], null=True, blank=True)),
            ('school', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['schools.School'], null=True, blank=True)),
            ('school_class', self.gf('django.db.models.fields.CharField')(max_length=20, null=True, blank=True)),
            ('classlevel', self.gf('django.db.models.fields.CharField')(max_length=2, null=True, blank=True)),
        ))
        db.send_create_signal(u'profiles', ['UserProfile'])

        # Adding model 'OrganizerProfile'
        db.create_table(u'profiles_organizerprofile', (
            (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('user', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['auth.User'], unique=True)),
            ('motto', self.gf('django.db.models.fields.CharField')(max_length=250, null=True, blank=True)),
        ))
        db.send_create_signal(u'profiles', ['OrganizerProfile'])
开发者ID:matus-stehlik,项目名称:glowing-batman,代码行数:25,代码来源:0001_initial.py


示例16: forwards

    def forwards(self, orm):
        # Adding model 'JellyfishIncident'
        db.create_table(u'data_jellyfishincident', (
            (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('date_observed', self.gf('django.db.models.fields.DateField')()),
            ('observation_station', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['data.ObservationStation'], on_delete=models.PROTECT)),
            ('source', self.gf('django.db.models.fields.CharField')(default='W', max_length=2)),
            ('sting_incidents', self.gf('django.db.models.fields.IntegerField')(default=0, blank=True)),
            ('total_incidents', self.gf('django.db.models.fields.IntegerField')(default=0, blank=True)),
            ('created_on', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
            ('created_by', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='created-incident', null=True, to=orm['auth.User'])),
            ('updated_on', self.gf('django.db.models.fields.DateTimeField')(auto_now=True, blank=True)),
            ('updated_by', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='updated-incident', null=True, to=orm['auth.User'])),
        ))
        db.send_create_signal(u'data', ['JellyfishIncident'])

        # Adding model 'FlagChange'
        db.create_table(u'data_flagchange', (
            (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('date', self.gf('django.db.models.fields.DateTimeField')()),
            ('observation_station', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['data.ObservationStation'], on_delete=models.PROTECT)),
            ('flag_status', self.gf('django.db.models.fields.CharField')(default='N', max_length=1)),
            ('jellyfish_flag', self.gf('django.db.models.fields.BooleanField')(default=False)),
            ('created_on', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
            ('created_by', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='created-flag', null=True, to=orm['auth.User'])),
            ('updated_on', self.gf('django.db.models.fields.DateTimeField')(auto_now=True, blank=True)),
            ('updated_by', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='updated-flag', null=True, to=orm['auth.User'])),
        ))
        db.send_create_signal(u'data', ['FlagChange'])

        # Adding field 'ObservationRoute.use_incident_form'
        db.add_column(u'data_observationroute', 'use_incident_form',
                      self.gf('django.db.models.fields.BooleanField')(default=False),
                      keep_default=False)
开发者ID:socib,项目名称:grumers,代码行数:34,代码来源:0010_auto__add_jellyfishincident__add_flagchange__add_field_observationrout.py


示例17: forwards

 def forwards(self, orm):
     # Adding model 'ConsiglioComunaleEvent'
     db.create_table('pages4gov_consigliocomunaleevent', (
         ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
         ('keywords_string', self.gf('django.db.models.fields.CharField')(blank=True, max_length=500)),
         ('site', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['sites.Site'])),
         ('title', self.gf('django.db.models.fields.CharField')(max_length=500)),
         ('slug', self.gf('django.db.models.fields.CharField')(null=True, max_length=2000, blank=True)),
         ('_meta_title', self.gf('django.db.models.fields.CharField')(null=True, max_length=500, blank=True)),
         ('description', self.gf('django.db.models.fields.TextField')(blank=True)),
         ('gen_description', self.gf('django.db.models.fields.BooleanField')(default=True)),
         ('created', self.gf('django.db.models.fields.DateTimeField')(null=True)),
         ('updated', self.gf('django.db.models.fields.DateTimeField')(null=True)),
         ('status', self.gf('django.db.models.fields.IntegerField')(default=2)),
         ('publish_date', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
         ('expiry_date', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
         ('short_url', self.gf('django.db.models.fields.URLField')(null=True, max_length=200, blank=True)),
         ('in_sitemap', self.gf('django.db.models.fields.BooleanField')(default=True)),
         ('content', self.gf('mezzanine.core.fields.RichTextField')()),
         ('user', self.gf('django.db.models.fields.related.ForeignKey')(related_name='consigliocomunaleevents', to=orm['auth.User'])),
         ('data_of_performance', self.gf('django.db.models.fields.DateTimeField')()),
         ('news_url', self.gf('django.db.models.fields.URLField')(blank=True, max_length=200)),
         ('youtube_video_url', self.gf('django.db.models.fields.URLField')(blank=True, max_length=200)),
         ('youtube_video_url_query', self.gf('django.db.models.fields.CharField')(blank=True, max_length=200)),
         ('hangout_url', self.gf('django.db.models.fields.URLField')(blank=True, max_length=200)),
     ))
     db.send_create_signal('pages4gov', ['ConsiglioComunaleEvent'])
开发者ID:simodalla,项目名称:openpa-pages4gov,代码行数:27,代码来源:0002_auto__add_consigliocomunaleevent.py


示例18: forwards

    def forwards(self, orm):
        # Adding model 'ImageModel'
        db.create_table(u'blogs_imagemodel', (
            (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('img', self.gf('django.db.models.fields.files.ImageField')(max_length=100)),
            ('name', self.gf('django.db.models.fields.CharField')(max_length=100)),
        ))
        db.send_create_signal(u'blogs', ['ImageModel'])

        # Adding model 'Blog'
        db.create_table(u'blogs_blog', (
            (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('title', self.gf('django.db.models.fields.CharField')(max_length=100)),
            ('image', self.gf('django.db.models.fields.files.ImageField')(max_length=100)),
            ('date', self.gf('django.db.models.fields.DateField')(auto_now_add=True, blank=True)),
            ('intro', self.gf('tinymce.models.HTMLField')()),
            ('content', self.gf('tinymce.models.HTMLField')()),
            ('url', self.gf('django.db.models.fields.CharField')(max_length=100, null=True)),
        ))
        db.send_create_signal(u'blogs', ['Blog'])

        # Adding M2M table for field images on 'Blog'
        db.create_table(u'blogs_blog_images', (
            ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
            ('blog', models.ForeignKey(orm[u'blogs.blog'], null=False)),
            ('imagemodel', models.ForeignKey(orm[u'blogs.imagemodel'], null=False))
        ))
        db.create_unique(u'blogs_blog_images', ['blog_id', 'imagemodel_id'])
开发者ID:manniealfaro,项目名称:riders,代码行数:28,代码来源:0001_initial.py


示例19: forwards

    def forwards(self, orm):
        # Adding model 'CalendarGroup'
        db.create_table('schedule_calendargroup', (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('name', self.gf('django.db.models.fields.CharField')(max_length=40)),
            ('color', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['main.Color'])),
        ))
        db.send_create_signal('schedule', ['CalendarGroup'])

        # Adding M2M table for field members on 'CalendarGroup'
        db.create_table('schedule_calendargroup_members', (
            ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
            ('calendargroup', models.ForeignKey(orm['schedule.calendargroup'], null=False)),
            ('user', models.ForeignKey(orm['auth.user'], null=False))
        ))
        db.create_unique('schedule_calendargroup_members', ['calendargroup_id', 'user_id'])

        # Adding field 'Event.group'
        db.add_column('schedule_event', 'group',
                      self.gf('django.db.models.fields.related.ForeignKey')(to=orm['schedule.CalendarGroup'], null=True, blank=True),
                      keep_default=False)


        # Changing field 'Event.calendar'
        db.alter_column('schedule_event', 'calendar_id', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['schedule.Calendar'], null=True))
开发者ID:ejaury,项目名称:maitreya_van,代码行数:25,代码来源:0003_add_calendar_group.py


示例20: forwards

    def forwards(self, orm):
        # Adding model 'TrackedUser'
        db.create_table(
            'sentry_trackeduser', (
                (
                    'id', self.gf('sentry.db.models.fields.bounded.BoundedBigAutoField')(
                        primary_key=True
                    )
                ), (
                    'project',
                    self.gf('sentry.db.models.fields.FlexibleForeignKey')(to=orm['sentry.Project'])
                ), ('ident', self.gf('django.db.models.fields.CharField')(max_length=200)),
                ('email', self.gf('django.db.models.fields.EmailField')(max_length=75, null=True)),
                ('data', self.gf('django.db.models.fields.TextField')(null=True, blank=True)), (
                    'last_seen', self.gf('django.db.models.fields.DateTimeField')(
                        db_index=True
                    )
                ), (
                    'first_seen', self.gf('django.db.models.fields.DateTimeField')(
                        db_index=True
                    )
                ),
            )
        )
        db.send_create_signal('sentry', ['TrackedUser'])

        # Adding unique constraint on 'TrackedUser', fields ['project', 'ident']
        db.create_unique('sentry_trackeduser', ['project_id', 'ident'])
开发者ID:Kayle009,项目名称:sentry,代码行数:28,代码来源:0077_auto__add_trackeduser__add_unique_trackeduser_project_ident.py



注:本文中的south.db.db.send_create_signal函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Python db.shorten_name函数代码示例发布时间:2022-05-27
下一篇:
Python db.rollback_transaction函数代码示例发布时间:2022-05-27
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap