2014-01-14 14:47:49 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
import datetime
|
|
|
|
from south.db import db
|
|
|
|
from south.v2 import SchemaMigration
|
|
|
|
from django.db import models
|
|
|
|
|
|
|
|
|
|
|
|
class Migration(SchemaMigration):
|
|
|
|
|
2014-01-14 16:06:41 +00:00
|
|
|
depends_on = (
|
|
|
|
("speakers", "0001_initial"),
|
|
|
|
)
|
|
|
|
|
2014-01-14 14:47:49 +00:00
|
|
|
def forwards(self, orm):
|
|
|
|
# Adding model 'ProposalSection'
|
|
|
|
db.create_table('proposals_proposalsection', (
|
|
|
|
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
|
|
|
|
('section', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['conference.Section'], unique=True)),
|
|
|
|
('start', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
|
|
|
|
('end', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
|
|
|
|
('closed', self.gf('django.db.models.fields.NullBooleanField')(null=True, blank=True)),
|
|
|
|
('published', self.gf('django.db.models.fields.NullBooleanField')(null=True, blank=True)),
|
|
|
|
))
|
|
|
|
db.send_create_signal('proposals', ['ProposalSection'])
|
|
|
|
|
|
|
|
# Adding model 'ProposalKind'
|
|
|
|
db.create_table('proposals_proposalkind', (
|
|
|
|
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
|
|
|
|
('section', self.gf('django.db.models.fields.related.ForeignKey')(related_name='proposal_kinds', to=orm['conference.Section'])),
|
|
|
|
('name', self.gf('django.db.models.fields.CharField')(max_length=100)),
|
|
|
|
('slug', self.gf('django.db.models.fields.SlugField')(max_length=50)),
|
|
|
|
))
|
|
|
|
db.send_create_signal('proposals', ['ProposalKind'])
|
|
|
|
|
|
|
|
# Adding model 'ProposalBase'
|
|
|
|
db.create_table('proposals_proposalbase', (
|
|
|
|
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
|
|
|
|
('kind', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['proposals.ProposalKind'])),
|
|
|
|
('title', self.gf('django.db.models.fields.CharField')(max_length=100)),
|
|
|
|
('description', self.gf('django.db.models.fields.TextField')(max_length=400)),
|
|
|
|
('abstract', self.gf('markitup.fields.MarkupField')(no_rendered_field=True)),
|
|
|
|
('additional_notes', self.gf('markitup.fields.MarkupField')(no_rendered_field=True, blank=True)),
|
|
|
|
('submitted', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)),
|
|
|
|
('speaker', self.gf('django.db.models.fields.related.ForeignKey')(related_name='proposals', to=orm['speakers.Speaker'])),
|
|
|
|
('cancelled', self.gf('django.db.models.fields.BooleanField')(default=False)),
|
|
|
|
('_abstract_rendered', self.gf('django.db.models.fields.TextField')(blank=True)),
|
|
|
|
('_additional_notes_rendered', self.gf('django.db.models.fields.TextField')(blank=True)),
|
|
|
|
))
|
|
|
|
db.send_create_signal('proposals', ['ProposalBase'])
|
|
|
|
|
|
|
|
# Adding model 'AdditionalSpeaker'
|
|
|
|
db.create_table('proposals_proposalbase_additional_speakers', (
|
|
|
|
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
|
|
|
|
('speaker', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['speakers.Speaker'])),
|
|
|
|
('proposalbase', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['proposals.ProposalBase'])),
|
|
|
|
('status', self.gf('django.db.models.fields.IntegerField')(default=1)),
|
|
|
|
))
|
|
|
|
db.send_create_signal('proposals', ['AdditionalSpeaker'])
|
|
|
|
|
|
|
|
# Adding unique constraint on 'AdditionalSpeaker', fields ['speaker', 'proposalbase']
|
|
|
|
db.create_unique('proposals_proposalbase_additional_speakers', ['speaker_id', 'proposalbase_id'])
|
|
|
|
|
|
|
|
# Adding model 'SupportingDocument'
|
|
|
|
db.create_table('proposals_supportingdocument', (
|
|
|
|
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
|
|
|
|
('proposal', self.gf('django.db.models.fields.related.ForeignKey')(related_name='supporting_documents', to=orm['proposals.ProposalBase'])),
|
|
|
|
('uploaded_by', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['auth.User'])),
|
|
|
|
('created_at', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)),
|
|
|
|
('file', self.gf('django.db.models.fields.files.FileField')(max_length=100)),
|
|
|
|
('description', self.gf('django.db.models.fields.CharField')(max_length=140)),
|
|
|
|
))
|
|
|
|
db.send_create_signal('proposals', ['SupportingDocument'])
|
|
|
|
|
|
|
|
|
|
|
|
def backwards(self, orm):
|
|
|
|
# Removing unique constraint on 'AdditionalSpeaker', fields ['speaker', 'proposalbase']
|
|
|
|
db.delete_unique('proposals_proposalbase_additional_speakers', ['speaker_id', 'proposalbase_id'])
|
|
|
|
|
|
|
|
# Deleting model 'ProposalSection'
|
|
|
|
db.delete_table('proposals_proposalsection')
|
|
|
|
|
|
|
|
# Deleting model 'ProposalKind'
|
|
|
|
db.delete_table('proposals_proposalkind')
|
|
|
|
|
|
|
|
# Deleting model 'ProposalBase'
|
|
|
|
db.delete_table('proposals_proposalbase')
|
|
|
|
|
|
|
|
# Deleting model 'AdditionalSpeaker'
|
|
|
|
db.delete_table('proposals_proposalbase_additional_speakers')
|
|
|
|
|
|
|
|
# Deleting model 'SupportingDocument'
|
|
|
|
db.delete_table('proposals_supportingdocument')
|
|
|
|
|
|
|
|
models = {
|
|
|
|
'auth.group': {
|
|
|
|
'Meta': {'object_name': 'Group'},
|
|
|
|
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
|
|
|
'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
|
|
|
|
'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
|
|
|
|
},
|
|
|
|
'auth.permission': {
|
|
|
|
'Meta': {'ordering': "('content_type__app_label', 'content_type__model', 'codename')", 'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
|
|
|
|
'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
|
|
|
|
'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
|
|
|
|
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
|
|
|
'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
|
|
|
|
},
|
|
|
|
'auth.user': {
|
|
|
|
'Meta': {'object_name': 'User'},
|
|
|
|
'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
|
|
|
|
'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
|
|
|
|
'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
|
|
|
|
'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}),
|
|
|
|
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
|
|
|
'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
|
|
|
|
'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
|
|
|
|
'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
|
|
|
|
'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
|
|
|
|
'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
|
|
|
|
'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
|
|
|
|
'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}),
|
|
|
|
'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
|
|
|
|
},
|
|
|
|
'conference.conference': {
|
|
|
|
'Meta': {'object_name': 'Conference'},
|
|
|
|
'end_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
|
|
|
|
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
|
|
|
'start_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
|
|
|
|
'timezone': ('timezones.fields.TimeZoneField', [], {'default': "'US/Eastern'", 'max_length': '100', 'blank': 'True'}),
|
|
|
|
'title': ('django.db.models.fields.CharField', [], {'max_length': '100'})
|
|
|
|
},
|
|
|
|
'conference.section': {
|
|
|
|
'Meta': {'ordering': "['start_date']", 'object_name': 'Section'},
|
|
|
|
'conference': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['conference.Conference']"}),
|
|
|
|
'end_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
|
|
|
|
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
|
|
|
'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
|
|
|
|
'slug': ('django.db.models.fields.SlugField', [], {'max_length': '50'}),
|
|
|
|
'start_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'})
|
|
|
|
},
|
|
|
|
'contenttypes.contenttype': {
|
|
|
|
'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
|
|
|
|
'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
|
|
|
|
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
|
|
|
'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
|
|
|
|
'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
|
|
|
|
},
|
|
|
|
'proposals.additionalspeaker': {
|
|
|
|
'Meta': {'unique_together': "(('speaker', 'proposalbase'),)", 'object_name': 'AdditionalSpeaker', 'db_table': "'proposals_proposalbase_additional_speakers'"},
|
|
|
|
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
|
|
|
'proposalbase': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['proposals.ProposalBase']"}),
|
|
|
|
'speaker': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['speakers.Speaker']"}),
|
|
|
|
'status': ('django.db.models.fields.IntegerField', [], {'default': '1'})
|
|
|
|
},
|
|
|
|
'proposals.proposalbase': {
|
|
|
|
'Meta': {'object_name': 'ProposalBase'},
|
|
|
|
'_abstract_rendered': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
|
|
|
|
'_additional_notes_rendered': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
|
|
|
|
'abstract': ('markitup.fields.MarkupField', [], {'no_rendered_field': 'True'}),
|
|
|
|
'additional_notes': ('markitup.fields.MarkupField', [], {'no_rendered_field': 'True', 'blank': 'True'}),
|
|
|
|
'additional_speakers': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['speakers.Speaker']", 'symmetrical': 'False', 'through': "orm['proposals.AdditionalSpeaker']", 'blank': 'True'}),
|
|
|
|
'cancelled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
|
|
|
|
'description': ('django.db.models.fields.TextField', [], {'max_length': '400'}),
|
|
|
|
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
|
|
|
'kind': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['proposals.ProposalKind']"}),
|
|
|
|
'speaker': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'proposals'", 'to': "orm['speakers.Speaker']"}),
|
|
|
|
'submitted': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
|
|
|
|
'title': ('django.db.models.fields.CharField', [], {'max_length': '100'})
|
|
|
|
},
|
|
|
|
'proposals.proposalkind': {
|
|
|
|
'Meta': {'object_name': 'ProposalKind'},
|
|
|
|
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
|
|
|
'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
|
|
|
|
'section': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'proposal_kinds'", 'to': "orm['conference.Section']"}),
|
|
|
|
'slug': ('django.db.models.fields.SlugField', [], {'max_length': '50'})
|
|
|
|
},
|
|
|
|
'proposals.proposalsection': {
|
|
|
|
'Meta': {'object_name': 'ProposalSection'},
|
|
|
|
'closed': ('django.db.models.fields.NullBooleanField', [], {'null': 'True', 'blank': 'True'}),
|
|
|
|
'end': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
|
|
|
|
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
|
|
|
'published': ('django.db.models.fields.NullBooleanField', [], {'null': 'True', 'blank': 'True'}),
|
|
|
|
'section': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['conference.Section']", 'unique': 'True'}),
|
|
|
|
'start': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})
|
|
|
|
},
|
|
|
|
'proposals.supportingdocument': {
|
|
|
|
'Meta': {'object_name': 'SupportingDocument'},
|
|
|
|
'created_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
|
|
|
|
'description': ('django.db.models.fields.CharField', [], {'max_length': '140'}),
|
|
|
|
'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
|
|
|
|
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
|
|
|
'proposal': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'supporting_documents'", 'to': "orm['proposals.ProposalBase']"}),
|
|
|
|
'uploaded_by': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']"})
|
|
|
|
},
|
|
|
|
'speakers.speaker': {
|
|
|
|
'Meta': {'ordering': "['name']", 'object_name': 'Speaker'},
|
|
|
|
'_biography_rendered': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
|
|
|
|
'annotation': ('django.db.models.fields.TextField', [], {}),
|
|
|
|
'biography': ('markitup.fields.MarkupField', [], {'no_rendered_field': 'True', 'blank': 'True'}),
|
|
|
|
'created': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
|
|
|
|
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
|
|
|
'invite_email': ('django.db.models.fields.CharField', [], {'max_length': '200', 'unique': 'True', 'null': 'True', 'db_index': 'True'}),
|
|
|
|
'invite_token': ('django.db.models.fields.CharField', [], {'max_length': '40', 'db_index': 'True'}),
|
|
|
|
'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
|
|
|
|
'photo': ('django.db.models.fields.files.ImageField', [], {'max_length': '100', 'blank': 'True'}),
|
|
|
|
'user': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'speaker_profile'", 'unique': 'True', 'null': 'True', 'to': "orm['auth.User']"})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-01-14 15:37:05 +00:00
|
|
|
complete_apps = ['proposals']
|