本文整理汇总了Python中south.db.db.send_create_signal函数的典型用法代码示例。如果您正苦于以下问题:Python send_create_signal函数的具体用法?Python send_create_signal怎么用?Python send_create_signal使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了send_create_signal函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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"])
示例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'])
示例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'])
示例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'])
示例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'])
示例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"])
示例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'])
示例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'])
示例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'])
示例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'])
示例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'])
示例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'])
示例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'])