Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Bug 897527 switch air mozilla from mysql to postgresql #61

Closed
wants to merge 4 commits into from

2 participants

@peterbe peterbe closed this
@peterbe peterbe reopened this
@selenamarie

r+! Awesome work. So glad py-mysql2pgsql works.

I'll try to test the full migration this afternoon, I'm assuming that this worked in your testing.

@peterbe peterbe closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jul 26, 2013
  1. @peterbe

    all tests pass

    peterbe authored
  2. @peterbe

    moar timezone awareness

    peterbe authored
  3. @peterbe

    initial migration

    peterbe authored
  4. @peterbe
This page is out of date. Refresh to see the latest.
Showing with 394 additions and 3,995 deletions.
  1. +1 −0  airmozilla/main/helpers.py
  2. +306 −17 airmozilla/main/migrations/0001_initial.py
  3. +0 −143 airmozilla/main/migrations/0002_auto__add_field_participant_creator.py
  4. 0  airmozilla/main/migrations/{0011_events_main_channel.py → 0002_events_main_channel.py}
  5. +0 −150 airmozilla/main/migrations/0003_add_perms_events_participants.py
  6. +0 −144 airmozilla/main/migrations/0004_auto__add_field_participant_clear_token.py
  7. +0 −184 airmozilla/main/migrations/0005_auto.py
  8. +0 −144 airmozilla/main/migrations/0006_auto__add_field_event_privacy.py
  9. +0 −155 airmozilla/main/migrations/0007_copying_public_to_privacy.py
  10. +0 −144 airmozilla/main/migrations/0008_auto__del_field_event_public.py
  11. +0 −153 airmozilla/main/migrations/0009_auto__add_userprofile.py
  12. +0 −179 airmozilla/main/migrations/0010_auto__add_channel.py
  13. +0 −226 airmozilla/main/migrations/0012_auto__add_suggestedevent__chg_field_channel_created.py
  14. +0 −180 airmozilla/main/migrations/0013_auto__chg_field_suggestedevent_start_time.py
  15. +0 −195 airmozilla/main/migrations/0014_auto__add_field_suggestedevent_submitted.py
  16. +0 −185 airmozilla/main/migrations/0015_auto__add_field_suggestedevent_accepted.py
  17. +0 −193 airmozilla/main/migrations/0016_auto__chg_field_suggestedevent_accepted.py
  18. +0 −186 airmozilla/main/migrations/0017_auto__add_field_suggestedevent_review_comments.py
  19. +0 −207 airmozilla/main/migrations/0018_auto__add_eventtweet.py
  20. +0 −219 airmozilla/main/migrations/0019_auto__add_vidlysubmission.py
  21. +0 −220 airmozilla/main/migrations/0020_auto__add_field_suggestedevent_remote_presenters__add_field_event_remo.py
  22. +0 −246 airmozilla/main/migrations/0021_auto__add_urlmatch__add_urltransform.py
  23. +0 −241 airmozilla/main/migrations/0022_auto__add_eventhitstats.py
  24. +0 −249 airmozilla/main/migrations/0023_auto__add_suggestedeventcomment.py
  25. +2 −1  airmozilla/manage/tests/test_views.py
  26. +5 −2 airmozilla/manage/views.py
  27. +1 −1  airmozilla/suggest/tests/test_views.py
  28. +0 −1  migrations/01-noop.sql
  29. 0  migrations/__init__.py
  30. +0 −30 migrations/schematic_settings.py
  31. +33 −0 mysql2postgres/README
  32. +33 −0 mysql2postgres/convert-all-timestamps.sql
  33. +13 −0 mysql2postgres/run-py-mysql2pgsql.sh
View
1  airmozilla/main/helpers.py
@@ -18,6 +18,7 @@
def js_date(dt, format='ddd, MMM D, YYYY, h:mma UTCZZ', enable_timeago=True,
autoupdate=False):
""" Python datetime to a time tag with JS Date.parse-parseable format. """
+ dt = dt.replace(microsecond=0) # we don't need the microseconds
dt_date = dt.strftime('%m/%d/%Y')
dt_time = dt.strftime('%H:%M')
dt_tz = dt.tzname() or 'UTC'
View
323 airmozilla/main/migrations/0001_initial.py
@@ -8,6 +8,14 @@
class Migration(SchemaMigration):
def forwards(self, orm):
+ # Adding model 'UserProfile'
+ db.create_table('main_userprofile', (
+ ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
+ ('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['auth.User'])),
+ ('contributor', self.gf('django.db.models.fields.BooleanField')(default=False)),
+ ))
+ db.send_create_signal('main', ['UserProfile'])
+
# Adding model 'Participant'
db.create_table('main_participant', (
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
@@ -22,7 +30,9 @@ def forwards(self, orm):
('blog_url', self.gf('django.db.models.fields.URLField')(max_length=200, blank=True)),
('twitter', self.gf('django.db.models.fields.CharField')(max_length=50, blank=True)),
('role', self.gf('django.db.models.fields.CharField')(max_length=25)),
- ('cleared', self.gf('django.db.models.fields.CharField')(default='no', max_length=15)),
+ ('cleared', self.gf('django.db.models.fields.CharField')(default='no', max_length=15, db_index=True)),
+ ('clear_token', self.gf('django.db.models.fields.CharField')(max_length=36, blank=True)),
+ ('creator', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='participant_creator', null=True, on_delete=models.SET_NULL, to=orm['auth.User'])),
))
db.send_create_signal('main', ['Participant'])
@@ -33,6 +43,18 @@ def forwards(self, orm):
))
db.send_create_signal('main', ['Category'])
+ # Adding model 'Channel'
+ db.create_table('main_channel', (
+ ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
+ ('name', self.gf('django.db.models.fields.CharField')(max_length=200)),
+ ('slug', self.gf('django.db.models.fields.SlugField')(unique=True, max_length=100)),
+ ('image', self.gf('sorl.thumbnail.fields.ImageField')(max_length=100, blank=True)),
+ ('image_is_banner', self.gf('django.db.models.fields.BooleanField')(default=False)),
+ ('description', self.gf('django.db.models.fields.TextField')()),
+ ('created', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime(2013, 7, 25, 0, 0))),
+ ))
+ db.send_create_signal('main', ['Channel'])
+
# Adding model 'Tag'
db.create_table('main_tag', (
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
@@ -63,18 +85,19 @@ def forwards(self, orm):
('slug', self.gf('django.db.models.fields.SlugField')(unique=True, max_length=215, blank=True)),
('template', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['main.Template'], null=True, on_delete=models.SET_NULL, blank=True)),
('template_environment', self.gf('airmozilla.main.fields.EnvironmentField')(blank=True)),
- ('status', self.gf('django.db.models.fields.CharField')(default='initiated', max_length=20)),
+ ('status', self.gf('django.db.models.fields.CharField')(default='initiated', max_length=20, db_index=True)),
('placeholder_img', self.gf('sorl.thumbnail.fields.ImageField')(max_length=100)),
('description', self.gf('django.db.models.fields.TextField')()),
('short_description', self.gf('django.db.models.fields.TextField')(blank=True)),
- ('start_time', self.gf('django.db.models.fields.DateTimeField')()),
- ('archive_time', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
+ ('start_time', self.gf('django.db.models.fields.DateTimeField')(db_index=True)),
+ ('archive_time', self.gf('django.db.models.fields.DateTimeField')(db_index=True, null=True, blank=True)),
('location', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['main.Location'], null=True, on_delete=models.SET_NULL, blank=True)),
('category', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['main.Category'], null=True, on_delete=models.SET_NULL, blank=True)),
('call_info', self.gf('django.db.models.fields.TextField')(blank=True)),
('additional_links', self.gf('django.db.models.fields.TextField')(blank=True)),
- ('public', self.gf('django.db.models.fields.BooleanField')(default=False)),
- ('featured', self.gf('django.db.models.fields.BooleanField')(default=False)),
+ ('remote_presenters', self.gf('django.db.models.fields.TextField')(null=True, blank=True)),
+ ('privacy', self.gf('django.db.models.fields.CharField')(default='public', max_length=40, db_index=True)),
+ ('featured', self.gf('django.db.models.fields.BooleanField')(default=False, db_index=True)),
('creator', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='creator', null=True, on_delete=models.SET_NULL, to=orm['auth.User'])),
('created', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
('modified_user', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='modified_user', null=True, on_delete=models.SET_NULL, to=orm['auth.User'])),
@@ -98,6 +121,73 @@ def forwards(self, orm):
))
db.create_unique('main_event_tags', ['event_id', 'tag_id'])
+ # Adding M2M table for field channels on 'Event'
+ db.create_table('main_event_channels', (
+ ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
+ ('event', models.ForeignKey(orm['main.event'], null=False)),
+ ('channel', models.ForeignKey(orm['main.channel'], null=False))
+ ))
+ db.create_unique('main_event_channels', ['event_id', 'channel_id'])
+
+ # Adding model 'SuggestedEvent'
+ db.create_table('main_suggestedevent', (
+ ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
+ ('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['auth.User'])),
+ ('title', self.gf('django.db.models.fields.CharField')(max_length=200)),
+ ('slug', self.gf('django.db.models.fields.SlugField')(unique=True, max_length=215, blank=True)),
+ ('placeholder_img', self.gf('sorl.thumbnail.fields.ImageField')(max_length=100)),
+ ('description', self.gf('django.db.models.fields.TextField')()),
+ ('short_description', self.gf('django.db.models.fields.TextField')(blank=True)),
+ ('start_time', self.gf('django.db.models.fields.DateTimeField')(db_index=True, null=True, blank=True)),
+ ('location', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['main.Location'], null=True, on_delete=models.SET_NULL, blank=True)),
+ ('category', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['main.Category'], null=True, on_delete=models.SET_NULL, blank=True)),
+ ('call_info', self.gf('django.db.models.fields.TextField')(blank=True)),
+ ('additional_links', self.gf('django.db.models.fields.TextField')(blank=True)),
+ ('remote_presenters', self.gf('django.db.models.fields.TextField')(null=True, blank=True)),
+ ('privacy', self.gf('django.db.models.fields.CharField')(default='public', max_length=40)),
+ ('featured', self.gf('django.db.models.fields.BooleanField')(default=False)),
+ ('created', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime(2013, 7, 25, 0, 0))),
+ ('modified', self.gf('django.db.models.fields.DateTimeField')(auto_now=True, blank=True)),
+ ('submitted', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
+ ('accepted', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['main.Event'], null=True, blank=True)),
+ ('review_comments', self.gf('django.db.models.fields.TextField')(null=True, blank=True)),
+ ))
+ db.send_create_signal('main', ['SuggestedEvent'])
+
+ # Adding M2M table for field tags on 'SuggestedEvent'
+ db.create_table('main_suggestedevent_tags', (
+ ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
+ ('suggestedevent', models.ForeignKey(orm['main.suggestedevent'], null=False)),
+ ('tag', models.ForeignKey(orm['main.tag'], null=False))
+ ))
+ db.create_unique('main_suggestedevent_tags', ['suggestedevent_id', 'tag_id'])
+
+ # Adding M2M table for field channels on 'SuggestedEvent'
+ db.create_table('main_suggestedevent_channels', (
+ ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
+ ('suggestedevent', models.ForeignKey(orm['main.suggestedevent'], null=False)),
+ ('channel', models.ForeignKey(orm['main.channel'], null=False))
+ ))
+ db.create_unique('main_suggestedevent_channels', ['suggestedevent_id', 'channel_id'])
+
+ # Adding M2M table for field participants on 'SuggestedEvent'
+ db.create_table('main_suggestedevent_participants', (
+ ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
+ ('suggestedevent', models.ForeignKey(orm['main.suggestedevent'], null=False)),
+ ('participant', models.ForeignKey(orm['main.participant'], null=False))
+ ))
+ db.create_unique('main_suggestedevent_participants', ['suggestedevent_id', 'participant_id'])
+
+ # Adding model 'SuggestedEventComment'
+ db.create_table('main_suggestedeventcomment', (
+ ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
+ ('suggested_event', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['main.SuggestedEvent'])),
+ ('comment', self.gf('django.db.models.fields.TextField')()),
+ ('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['auth.User'], null=True, on_delete=models.SET_NULL, blank=True)),
+ ('created', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime(2013, 7, 25, 0, 0))),
+ ))
+ db.send_create_signal('main', ['SuggestedEventComment'])
+
# Adding model 'EventOldSlug'
db.create_table('main_eventoldslug', (
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
@@ -106,27 +196,91 @@ def forwards(self, orm):
))
db.send_create_signal('main', ['EventOldSlug'])
+ # Adding model 'EventTweet'
+ db.create_table('main_eventtweet', (
+ ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
+ ('event', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['main.Event'])),
+ ('text', self.gf('django.db.models.fields.CharField')(max_length=140)),
+ ('include_placeholder', self.gf('django.db.models.fields.BooleanField')(default=False)),
+ ('creator', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['auth.User'], null=True, on_delete=models.SET_NULL, blank=True)),
+ ('send_date', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime(2013, 7, 25, 0, 0))),
+ ('sent_date', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
+ ('error', self.gf('django.db.models.fields.TextField')(null=True, blank=True)),
+ ('tweet_id', self.gf('django.db.models.fields.CharField')(max_length=20, null=True, blank=True)),
+ ))
+ db.send_create_signal('main', ['EventTweet'])
+
# Adding model 'Approval'
db.create_table('main_approval', (
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
('event', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['main.Event'])),
('group', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['auth.Group'], null=True, on_delete=models.SET_NULL, blank=True)),
('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['auth.User'], null=True, on_delete=models.SET_NULL, blank=True)),
- ('approved', self.gf('django.db.models.fields.BooleanField')(default=False)),
- ('processed', self.gf('django.db.models.fields.BooleanField')(default=False)),
+ ('approved', self.gf('django.db.models.fields.BooleanField')(default=False, db_index=True)),
+ ('processed', self.gf('django.db.models.fields.BooleanField')(default=False, db_index=True)),
('processed_time', self.gf('django.db.models.fields.DateTimeField')(auto_now=True, blank=True)),
('comment', self.gf('django.db.models.fields.TextField')(blank=True)),
))
db.send_create_signal('main', ['Approval'])
+ # Adding model 'VidlySubmission'
+ db.create_table('main_vidlysubmission', (
+ ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
+ ('event', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['main.Event'])),
+ ('url', self.gf('django.db.models.fields.URLField')(max_length=200)),
+ ('submission_time', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime(2013, 7, 25, 0, 0))),
+ ('tag', self.gf('django.db.models.fields.CharField')(max_length=100, null=True, blank=True)),
+ ('email', self.gf('django.db.models.fields.EmailField')(max_length=75, null=True, blank=True)),
+ ('token_protection', self.gf('django.db.models.fields.BooleanField')(default=False)),
+ ('hd', self.gf('django.db.models.fields.BooleanField')(default=False)),
+ ('submission_error', self.gf('django.db.models.fields.TextField')(null=True, blank=True)),
+ ))
+ db.send_create_signal('main', ['VidlySubmission'])
+
+ # Adding model 'URLMatch'
+ db.create_table('main_urlmatch', (
+ ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
+ ('name', self.gf('django.db.models.fields.CharField')(max_length=200)),
+ ('string', self.gf('django.db.models.fields.CharField')(max_length=200)),
+ ('use_count', self.gf('django.db.models.fields.IntegerField')(default=0)),
+ ('modified', self.gf('django.db.models.fields.DateTimeField')(auto_now=True, blank=True)),
+ ))
+ db.send_create_signal('main', ['URLMatch'])
+
+ # Adding model 'URLTransform'
+ db.create_table('main_urltransform', (
+ ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
+ ('match', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['main.URLMatch'])),
+ ('find', self.gf('django.db.models.fields.CharField')(max_length=200)),
+ ('replace_with', self.gf('django.db.models.fields.CharField')(max_length=200)),
+ ('order', self.gf('django.db.models.fields.IntegerField')(default=1)),
+ ))
+ db.send_create_signal('main', ['URLTransform'])
+
+ # Adding model 'EventHitStats'
+ db.create_table('main_eventhitstats', (
+ ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
+ ('event', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['main.Event'], unique=True)),
+ ('total_hits', self.gf('django.db.models.fields.IntegerField')()),
+ ('shortcode', self.gf('django.db.models.fields.CharField')(max_length=100)),
+ ('modified', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime(2013, 7, 25, 0, 0))),
+ ))
+ db.send_create_signal('main', ['EventHitStats'])
+
def backwards(self, orm):
+ # Deleting model 'UserProfile'
+ db.delete_table('main_userprofile')
+
# Deleting model 'Participant'
db.delete_table('main_participant')
# Deleting model 'Category'
db.delete_table('main_category')
+ # Deleting model 'Channel'
+ db.delete_table('main_channel')
+
# Deleting model 'Tag'
db.delete_table('main_tag')
@@ -145,12 +299,45 @@ def backwards(self, orm):
# Removing M2M table for field tags on 'Event'
db.delete_table('main_event_tags')
+ # Removing M2M table for field channels on 'Event'
+ db.delete_table('main_event_channels')
+
+ # Deleting model 'SuggestedEvent'
+ db.delete_table('main_suggestedevent')
+
+ # Removing M2M table for field tags on 'SuggestedEvent'
+ db.delete_table('main_suggestedevent_tags')
+
+ # Removing M2M table for field channels on 'SuggestedEvent'
+ db.delete_table('main_suggestedevent_channels')
+
+ # Removing M2M table for field participants on 'SuggestedEvent'
+ db.delete_table('main_suggestedevent_participants')
+
+ # Deleting model 'SuggestedEventComment'
+ db.delete_table('main_suggestedeventcomment')
+
# Deleting model 'EventOldSlug'
db.delete_table('main_eventoldslug')
+ # Deleting model 'EventTweet'
+ db.delete_table('main_eventtweet')
+
# Deleting model 'Approval'
db.delete_table('main_approval')
+ # Deleting model 'VidlySubmission'
+ db.delete_table('main_vidlysubmission')
+
+ # Deleting model 'URLMatch'
+ db.delete_table('main_urlmatch')
+
+ # Deleting model 'URLTransform'
+ db.delete_table('main_urltransform')
+
+ # Deleting model 'EventHitStats'
+ db.delete_table('main_eventhitstats')
+
models = {
'auth.group': {
@@ -191,52 +378,84 @@ def backwards(self, orm):
},
'main.approval': {
'Meta': {'object_name': 'Approval'},
- 'approved': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
+ 'approved': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True'}),
'comment': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
'event': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Event']"}),
'group': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.Group']", 'null': 'True', 'on_delete': 'models.SET_NULL', 'blank': 'True'}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'processed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
+ 'processed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True'}),
'processed_time': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True', 'on_delete': 'models.SET_NULL', 'blank': 'True'})
},
'main.category': {
- 'Meta': {'object_name': 'Category'},
+ 'Meta': {'ordering': "['name']", 'object_name': 'Category'},
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
},
+ 'main.channel': {
+ 'Meta': {'ordering': "['name']", 'object_name': 'Channel'},
+ 'created': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2013, 7, 25, 0, 0)'}),
+ 'description': ('django.db.models.fields.TextField', [], {}),
+ 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'image': ('sorl.thumbnail.fields.ImageField', [], {'max_length': '100', 'blank': 'True'}),
+ 'image_is_banner': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
+ 'name': ('django.db.models.fields.CharField', [], {'max_length': '200'}),
+ 'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '100'})
+ },
'main.event': {
'Meta': {'object_name': 'Event'},
'additional_links': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'archive_time': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
+ 'archive_time': ('django.db.models.fields.DateTimeField', [], {'db_index': 'True', 'null': 'True', 'blank': 'True'}),
'call_info': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
'category': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Category']", 'null': 'True', 'on_delete': 'models.SET_NULL', 'blank': 'True'}),
+ 'channels': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['main.Channel']", 'symmetrical': 'False'}),
'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
'creator': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'creator'", 'null': 'True', 'on_delete': 'models.SET_NULL', 'to': "orm['auth.User']"}),
'description': ('django.db.models.fields.TextField', [], {}),
- 'featured': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
+ 'featured': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True'}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'location': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Location']", 'null': 'True', 'on_delete': 'models.SET_NULL', 'blank': 'True'}),
'modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
'modified_user': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'modified_user'", 'null': 'True', 'on_delete': 'models.SET_NULL', 'to': "orm['auth.User']"}),
'participants': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['main.Participant']", 'symmetrical': 'False'}),
'placeholder_img': ('sorl.thumbnail.fields.ImageField', [], {'max_length': '100'}),
- 'public': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
+ 'privacy': ('django.db.models.fields.CharField', [], {'default': "'public'", 'max_length': '40', 'db_index': 'True'}),
+ 'remote_presenters': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
'short_description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '215', 'blank': 'True'}),
- 'start_time': ('django.db.models.fields.DateTimeField', [], {}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'initiated'", 'max_length': '20'}),
+ 'start_time': ('django.db.models.fields.DateTimeField', [], {'db_index': 'True'}),
+ 'status': ('django.db.models.fields.CharField', [], {'default': "'initiated'", 'max_length': '20', 'db_index': 'True'}),
'tags': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['main.Tag']", 'symmetrical': 'False', 'blank': 'True'}),
'template': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Template']", 'null': 'True', 'on_delete': 'models.SET_NULL', 'blank': 'True'}),
'template_environment': ('airmozilla.main.fields.EnvironmentField', [], {'blank': 'True'}),
'title': ('django.db.models.fields.CharField', [], {'max_length': '200'})
},
+ 'main.eventhitstats': {
+ 'Meta': {'object_name': 'EventHitStats'},
+ 'event': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Event']", 'unique': 'True'}),
+ 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'modified': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2013, 7, 25, 0, 0)'}),
+ 'shortcode': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
+ 'total_hits': ('django.db.models.fields.IntegerField', [], {})
+ },
'main.eventoldslug': {
'Meta': {'object_name': 'EventOldSlug'},
'event': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Event']"}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '215'})
},
+ 'main.eventtweet': {
+ 'Meta': {'object_name': 'EventTweet'},
+ 'creator': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True', 'on_delete': 'models.SET_NULL', 'blank': 'True'}),
+ 'error': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
+ 'event': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Event']"}),
+ 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'include_placeholder': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
+ 'send_date': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2013, 7, 25, 0, 0)'}),
+ 'sent_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
+ 'text': ('django.db.models.fields.CharField', [], {'max_length': '140'}),
+ 'tweet_id': ('django.db.models.fields.CharField', [], {'max_length': '20', 'null': 'True', 'blank': 'True'})
+ },
'main.location': {
'Meta': {'object_name': 'Location'},
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
@@ -246,7 +465,9 @@ def backwards(self, orm):
'main.participant': {
'Meta': {'object_name': 'Participant'},
'blog_url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'}),
- 'cleared': ('django.db.models.fields.CharField', [], {'default': "'no'", 'max_length': '15'}),
+ 'clear_token': ('django.db.models.fields.CharField', [], {'max_length': '36', 'blank': 'True'}),
+ 'cleared': ('django.db.models.fields.CharField', [], {'default': "'no'", 'max_length': '15', 'db_index': 'True'}),
+ 'creator': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'participant_creator'", 'null': 'True', 'on_delete': 'models.SET_NULL', 'to': "orm['auth.User']"}),
'department': ('django.db.models.fields.CharField', [], {'max_length': '50', 'blank': 'True'}),
'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
@@ -259,6 +480,40 @@ def backwards(self, orm):
'topic_url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'}),
'twitter': ('django.db.models.fields.CharField', [], {'max_length': '50', 'blank': 'True'})
},
+ 'main.suggestedevent': {
+ 'Meta': {'object_name': 'SuggestedEvent'},
+ 'accepted': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Event']", 'null': 'True', 'blank': 'True'}),
+ 'additional_links': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
+ 'call_info': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
+ 'category': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Category']", 'null': 'True', 'on_delete': 'models.SET_NULL', 'blank': 'True'}),
+ 'channels': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['main.Channel']", 'symmetrical': 'False'}),
+ 'created': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2013, 7, 25, 0, 0)'}),
+ 'description': ('django.db.models.fields.TextField', [], {}),
+ 'featured': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
+ 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'location': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Location']", 'null': 'True', 'on_delete': 'models.SET_NULL', 'blank': 'True'}),
+ 'modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
+ 'participants': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['main.Participant']", 'symmetrical': 'False'}),
+ 'placeholder_img': ('sorl.thumbnail.fields.ImageField', [], {'max_length': '100'}),
+ 'privacy': ('django.db.models.fields.CharField', [], {'default': "'public'", 'max_length': '40'}),
+ 'remote_presenters': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
+ 'review_comments': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
+ 'short_description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
+ 'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '215', 'blank': 'True'}),
+ 'start_time': ('django.db.models.fields.DateTimeField', [], {'db_index': 'True', 'null': 'True', 'blank': 'True'}),
+ 'submitted': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
+ 'tags': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['main.Tag']", 'symmetrical': 'False', 'blank': 'True'}),
+ 'title': ('django.db.models.fields.CharField', [], {'max_length': '200'}),
+ 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']"})
+ },
+ 'main.suggestedeventcomment': {
+ 'Meta': {'object_name': 'SuggestedEventComment'},
+ 'comment': ('django.db.models.fields.TextField', [], {}),
+ 'created': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2013, 7, 25, 0, 0)'}),
+ 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'suggested_event': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.SuggestedEvent']"}),
+ 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True', 'on_delete': 'models.SET_NULL', 'blank': 'True'})
+ },
'main.tag': {
'Meta': {'object_name': 'Tag'},
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
@@ -269,6 +524,40 @@ def backwards(self, orm):
'content': ('django.db.models.fields.TextField', [], {}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
+ },
+ 'main.urlmatch': {
+ 'Meta': {'object_name': 'URLMatch'},
+ 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
+ 'name': ('django.db.models.fields.CharField', [], {'max_length': '200'}),
+ 'string': ('django.db.models.fields.CharField', [], {'max_length': '200'}),
+ 'use_count': ('django.db.models.fields.IntegerField', [], {'default': '0'})
+ },
+ 'main.urltransform': {
+ 'Meta': {'object_name': 'URLTransform'},
+ 'find': ('django.db.models.fields.CharField', [], {'max_length': '200'}),
+ 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'match': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.URLMatch']"}),
+ 'order': ('django.db.models.fields.IntegerField', [], {'default': '1'}),
+ 'replace_with': ('django.db.models.fields.CharField', [], {'max_length': '200'})
+ },
+ 'main.userprofile': {
+ 'Meta': {'object_name': 'UserProfile'},
+ 'contributor': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
+ 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']"})
+ },
+ 'main.vidlysubmission': {
+ 'Meta': {'object_name': 'VidlySubmission'},
+ 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'null': 'True', 'blank': 'True'}),
+ 'event': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Event']"}),
+ 'hd': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
+ 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'submission_error': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
+ 'submission_time': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2013, 7, 25, 0, 0)'}),
+ 'tag': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
+ 'token_protection': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
+ 'url': ('django.db.models.fields.URLField', [], {'max_length': '200'})
}
}
View
143 airmozilla/main/migrations/0002_auto__add_field_participant_creator.py
@@ -1,143 +0,0 @@
-# -*- coding: utf-8 -*-
-import datetime
-from south.db import db
-from south.v2 import SchemaMigration
-from django.db import models
-
-
-class Migration(SchemaMigration):
-
- def forwards(self, orm):
- # Adding field 'Participant.creator'
- db.add_column('main_participant', 'creator',
- self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='participant_creator', null=True, on_delete=models.SET_NULL, to=orm['auth.User']),
- keep_default=False)
-
-
- def backwards(self, orm):
- # Deleting field 'Participant.creator'
- db.delete_column('main_participant', 'creator_id')
-
-
- 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'})
- },
- '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'})
- },
- 'main.approval': {
- 'Meta': {'object_name': 'Approval'},
- 'approved': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'comment': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'event': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Event']"}),
- 'group': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.Group']", 'null': 'True', 'on_delete': 'models.SET_NULL', 'blank': 'True'}),
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'processed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'processed_time': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True', 'on_delete': 'models.SET_NULL', 'blank': 'True'})
- },
- 'main.category': {
- 'Meta': {'object_name': 'Category'},
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- 'main.event': {
- 'Meta': {'object_name': 'Event'},
- 'additional_links': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'archive_time': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- 'call_info': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'category': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Category']", 'null': 'True', 'on_delete': 'models.SET_NULL', 'blank': 'True'}),
- 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'creator': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'creator'", 'null': 'True', 'on_delete': 'models.SET_NULL', 'to': "orm['auth.User']"}),
- 'description': ('django.db.models.fields.TextField', [], {}),
- 'featured': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'location': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Location']", 'null': 'True', 'on_delete': 'models.SET_NULL', 'blank': 'True'}),
- 'modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
- 'modified_user': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'modified_user'", 'null': 'True', 'on_delete': 'models.SET_NULL', 'to': "orm['auth.User']"}),
- 'participants': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['main.Participant']", 'symmetrical': 'False'}),
- 'placeholder_img': ('sorl.thumbnail.fields.ImageField', [], {'max_length': '100'}),
- 'public': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'short_description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '215', 'blank': 'True'}),
- 'start_time': ('django.db.models.fields.DateTimeField', [], {}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'initiated'", 'max_length': '20'}),
- 'tags': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['main.Tag']", 'symmetrical': 'False', 'blank': 'True'}),
- 'template': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Template']", 'null': 'True', 'on_delete': 'models.SET_NULL', 'blank': 'True'}),
- 'template_environment': ('airmozilla.main.fields.EnvironmentField', [], {'blank': 'True'}),
- 'title': ('django.db.models.fields.CharField', [], {'max_length': '200'})
- },
- 'main.eventoldslug': {
- 'Meta': {'object_name': 'EventOldSlug'},
- 'event': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Event']"}),
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '215'})
- },
- 'main.location': {
- 'Meta': {'object_name': 'Location'},
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '300'}),
- 'timezone': ('django.db.models.fields.CharField', [], {'max_length': '250'})
- },
- 'main.participant': {
- 'Meta': {'object_name': 'Participant'},
- 'blog_url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'}),
- 'cleared': ('django.db.models.fields.CharField', [], {'default': "'no'", 'max_length': '15'}),
- 'creator': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'participant_creator'", 'null': 'True', 'on_delete': 'models.SET_NULL', 'to': "orm['auth.User']"}),
- 'department': ('django.db.models.fields.CharField', [], {'max_length': '50', 'blank': 'True'}),
- 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'irc': ('django.db.models.fields.CharField', [], {'max_length': '50', 'blank': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
- 'photo': ('sorl.thumbnail.fields.ImageField', [], {'max_length': '100', 'blank': 'True'}),
- 'role': ('django.db.models.fields.CharField', [], {'max_length': '25'}),
- 'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '65', 'blank': 'True'}),
- 'team': ('django.db.models.fields.CharField', [], {'max_length': '50', 'blank': 'True'}),
- 'topic_url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'}),
- 'twitter': ('django.db.models.fields.CharField', [], {'max_length': '50', 'blank': 'True'})
- },
- 'main.tag': {
- 'Meta': {'object_name': 'Tag'},
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- 'main.template': {
- 'Meta': {'object_name': 'Template'},
- 'content': ('django.db.models.fields.TextField', [], {}),
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
- }
- }
-
- complete_apps = ['main']
View
0  ...in/migrations/0011_events_main_channel.py → ...in/migrations/0002_events_main_channel.py
File renamed without changes
View
150 airmozilla/main/migrations/0003_add_perms_events_participants.py
@@ -1,150 +0,0 @@
-# -*- coding: utf-8 -*-
-import datetime
-from south.db import db
-from south.v2 import DataMigration
-from django.db import models
-
-class Migration(DataMigration):
-
- def forwards(self, orm):
- ct, _ = orm['contenttypes.ContentType'].objects.get_or_create(
- model='event', app_label='main')
- orm['auth.permission'].objects.get_or_create(
- content_type=ct, codename='change_event_others',
- defaults=dict(name=u'Can edit events created by other users'))
- orm['auth.permission'].objects.get_or_create(
- content_type=ct, codename='add_event_scheduled',
- defaults=dict(name=u'Can create events with scheduled status'))
-
- ct, _ = orm['contenttypes.ContentType'].objects.get_or_create(
- model='participant', app_label='main')
- orm['auth.permission'].objects.get_or_create(
- content_type=ct, codename='change_participant_others',
- defaults=dict(name=u'Can edit participants created by other users'))
-
- def backwards(self, orm):
- raise RuntimeError("Cannot reverse this migration.")
-
- 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'})
- },
- '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'})
- },
- 'main.approval': {
- 'Meta': {'object_name': 'Approval'},
- 'approved': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'comment': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'event': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Event']"}),
- 'group': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.Group']", 'null': 'True', 'on_delete': 'models.SET_NULL', 'blank': 'True'}),
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'processed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'processed_time': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True', 'on_delete': 'models.SET_NULL', 'blank': 'True'})
- },
- 'main.category': {
- 'Meta': {'object_name': 'Category'},
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- 'main.event': {
- 'Meta': {'object_name': 'Event'},
- 'additional_links': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'archive_time': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- 'call_info': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'category': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Category']", 'null': 'True', 'on_delete': 'models.SET_NULL', 'blank': 'True'}),
- 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'creator': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'creator'", 'null': 'True', 'on_delete': 'models.SET_NULL', 'to': "orm['auth.User']"}),
- 'description': ('django.db.models.fields.TextField', [], {}),
- 'featured': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'location': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Location']", 'null': 'True', 'on_delete': 'models.SET_NULL', 'blank': 'True'}),
- 'modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
- 'modified_user': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'modified_user'", 'null': 'True', 'on_delete': 'models.SET_NULL', 'to': "orm['auth.User']"}),
- 'participants': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['main.Participant']", 'symmetrical': 'False'}),
- 'placeholder_img': ('sorl.thumbnail.fields.ImageField', [], {'max_length': '100'}),
- 'public': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'short_description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '215', 'blank': 'True'}),
- 'start_time': ('django.db.models.fields.DateTimeField', [], {}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'initiated'", 'max_length': '20'}),
- 'tags': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['main.Tag']", 'symmetrical': 'False', 'blank': 'True'}),
- 'template': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Template']", 'null': 'True', 'on_delete': 'models.SET_NULL', 'blank': 'True'}),
- 'template_environment': ('airmozilla.main.fields.EnvironmentField', [], {'blank': 'True'}),
- 'title': ('django.db.models.fields.CharField', [], {'max_length': '200'})
- },
- 'main.eventoldslug': {
- 'Meta': {'object_name': 'EventOldSlug'},
- 'event': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Event']"}),
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '215'})
- },
- 'main.location': {
- 'Meta': {'object_name': 'Location'},
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '300'}),
- 'timezone': ('django.db.models.fields.CharField', [], {'max_length': '250'})
- },
- 'main.participant': {
- 'Meta': {'object_name': 'Participant'},
- 'blog_url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'}),
- 'cleared': ('django.db.models.fields.CharField', [], {'default': "'no'", 'max_length': '15'}),
- 'creator': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'participant_creator'", 'null': 'True', 'on_delete': 'models.SET_NULL', 'to': "orm['auth.User']"}),
- 'department': ('django.db.models.fields.CharField', [], {'max_length': '50', 'blank': 'True'}),
- 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'irc': ('django.db.models.fields.CharField', [], {'max_length': '50', 'blank': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
- 'photo': ('sorl.thumbnail.fields.ImageField', [], {'max_length': '100', 'blank': 'True'}),
- 'role': ('django.db.models.fields.CharField', [], {'max_length': '25'}),
- 'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '65', 'blank': 'True'}),
- 'team': ('django.db.models.fields.CharField', [], {'max_length': '50', 'blank': 'True'}),
- 'topic_url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'}),
- 'twitter': ('django.db.models.fields.CharField', [], {'max_length': '50', 'blank': 'True'})
- },
- 'main.tag': {
- 'Meta': {'object_name': 'Tag'},
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- 'main.template': {
- 'Meta': {'object_name': 'Template'},
- 'content': ('django.db.models.fields.TextField', [], {}),
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
- }
- }
-
- complete_apps = ['contenttypes', 'auth', 'main']
- symmetrical = True
View
144 airmozilla/main/migrations/0004_auto__add_field_participant_clear_token.py
@@ -1,144 +0,0 @@
-# -*- coding: utf-8 -*-
-import datetime
-from south.db import db
-from south.v2 import SchemaMigration
-from django.db import models
-
-
-class Migration(SchemaMigration):
-
- def forwards(self, orm):
- # Adding field 'Participant.clear_token'
- db.add_column('main_participant', 'clear_token',
- self.gf('django.db.models.fields.CharField')(default='', max_length=36, blank=True),
- keep_default=False)
-
-
- def backwards(self, orm):
- # Deleting field 'Participant.clear_token'
- db.delete_column('main_participant', 'clear_token')
-
-
- 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'})
- },
- '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'})
- },
- 'main.approval': {
- 'Meta': {'object_name': 'Approval'},
- 'approved': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'comment': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'event': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Event']"}),
- 'group': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.Group']", 'null': 'True', 'on_delete': 'models.SET_NULL', 'blank': 'True'}),
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'processed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'processed_time': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True', 'on_delete': 'models.SET_NULL', 'blank': 'True'})
- },
- 'main.category': {
- 'Meta': {'object_name': 'Category'},
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- 'main.event': {
- 'Meta': {'object_name': 'Event'},
- 'additional_links': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'archive_time': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- 'call_info': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'category': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Category']", 'null': 'True', 'on_delete': 'models.SET_NULL', 'blank': 'True'}),
- 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'creator': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'creator'", 'null': 'True', 'on_delete': 'models.SET_NULL', 'to': "orm['auth.User']"}),
- 'description': ('django.db.models.fields.TextField', [], {}),
- 'featured': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'location': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Location']", 'null': 'True', 'on_delete': 'models.SET_NULL', 'blank': 'True'}),
- 'modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
- 'modified_user': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'modified_user'", 'null': 'True', 'on_delete': 'models.SET_NULL', 'to': "orm['auth.User']"}),
- 'participants': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['main.Participant']", 'symmetrical': 'False'}),
- 'placeholder_img': ('sorl.thumbnail.fields.ImageField', [], {'max_length': '100'}),
- 'public': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'short_description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '215', 'blank': 'True'}),
- 'start_time': ('django.db.models.fields.DateTimeField', [], {}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'initiated'", 'max_length': '20'}),
- 'tags': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['main.Tag']", 'symmetrical': 'False', 'blank': 'True'}),
- 'template': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Template']", 'null': 'True', 'on_delete': 'models.SET_NULL', 'blank': 'True'}),
- 'template_environment': ('airmozilla.main.fields.EnvironmentField', [], {'blank': 'True'}),
- 'title': ('django.db.models.fields.CharField', [], {'max_length': '200'})
- },
- 'main.eventoldslug': {
- 'Meta': {'object_name': 'EventOldSlug'},
- 'event': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Event']"}),
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '215'})
- },
- 'main.location': {
- 'Meta': {'object_name': 'Location'},
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '300'}),
- 'timezone': ('django.db.models.fields.CharField', [], {'max_length': '250'})
- },
- 'main.participant': {
- 'Meta': {'object_name': 'Participant'},
- 'blog_url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'}),
- 'clear_token': ('django.db.models.fields.CharField', [], {'max_length': '36', 'blank': 'True'}),
- 'cleared': ('django.db.models.fields.CharField', [], {'default': "'no'", 'max_length': '15'}),
- 'creator': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'participant_creator'", 'null': 'True', 'on_delete': 'models.SET_NULL', 'to': "orm['auth.User']"}),
- 'department': ('django.db.models.fields.CharField', [], {'max_length': '50', 'blank': 'True'}),
- 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'irc': ('django.db.models.fields.CharField', [], {'max_length': '50', 'blank': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
- 'photo': ('sorl.thumbnail.fields.ImageField', [], {'max_length': '100', 'blank': 'True'}),
- 'role': ('django.db.models.fields.CharField', [], {'max_length': '25'}),
- 'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '65', 'blank': 'True'}),
- 'team': ('django.db.models.fields.CharField', [], {'max_length': '50', 'blank': 'True'}),
- 'topic_url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'}),
- 'twitter': ('django.db.models.fields.CharField', [], {'max_length': '50', 'blank': 'True'})
- },
- 'main.tag': {
- 'Meta': {'object_name': 'Tag'},
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- 'main.template': {
- 'Meta': {'object_name': 'Template'},
- 'content': ('django.db.models.fields.TextField', [], {}),
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
- }
- }
-
- complete_apps = ['main']
View
184 airmozilla/main/migrations/0005_auto.py
@@ -1,184 +0,0 @@
-# -*- coding: utf-8 -*-
-import datetime
-from south.db import db
-from south.v2 import SchemaMigration
-from django.db import models
-
-
-class Migration(SchemaMigration):
-
- def forwards(self, orm):
- # Adding index on 'Event', fields ['status']
- db.create_index('main_event', ['status'])
-
- # Adding index on 'Event', fields ['archive_time']
- db.create_index('main_event', ['archive_time'])
-
- # Adding index on 'Event', fields ['start_time']
- db.create_index('main_event', ['start_time'])
-
- # Adding index on 'Event', fields ['public']
- db.create_index('main_event', ['public'])
-
- # Adding index on 'Event', fields ['featured']
- db.create_index('main_event', ['featured'])
-
- # Adding index on 'Participant', fields ['cleared']
- db.create_index('main_participant', ['cleared'])
-
- # Adding index on 'Approval', fields ['approved']
- db.create_index('main_approval', ['approved'])
-
- # Adding index on 'Approval', fields ['processed']
- db.create_index('main_approval', ['processed'])
-
-
- def backwards(self, orm):
- # Removing index on 'Approval', fields ['processed']
- db.delete_index('main_approval', ['processed'])
-
- # Removing index on 'Approval', fields ['approved']
- db.delete_index('main_approval', ['approved'])
-
- # Removing index on 'Participant', fields ['cleared']
- db.delete_index('main_participant', ['cleared'])
-
- # Removing index on 'Event', fields ['featured']
- db.delete_index('main_event', ['featured'])
-
- # Removing index on 'Event', fields ['public']
- db.delete_index('main_event', ['public'])
-
- # Removing index on 'Event', fields ['start_time']
- db.delete_index('main_event', ['start_time'])
-
- # Removing index on 'Event', fields ['archive_time']
- db.delete_index('main_event', ['archive_time'])
-
- # Removing index on 'Event', fields ['status']
- db.delete_index('main_event', ['status'])
-
-
- 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'})
- },
- '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'})
- },
- 'main.approval': {
- 'Meta': {'object_name': 'Approval'},
- 'approved': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True'}),
- 'comment': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'event': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Event']"}),
- 'group': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.Group']", 'null': 'True', 'on_delete': 'models.SET_NULL', 'blank': 'True'}),
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'processed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True'}),
- 'processed_time': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True', 'on_delete': 'models.SET_NULL', 'blank': 'True'})
- },
- 'main.category': {
- 'Meta': {'object_name': 'Category'},
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- 'main.event': {
- 'Meta': {'object_name': 'Event'},
- 'additional_links': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'archive_time': ('django.db.models.fields.DateTimeField', [], {'db_index': 'True', 'null': 'True', 'blank': 'True'}),
- 'call_info': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'category': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Category']", 'null': 'True', 'on_delete': 'models.SET_NULL', 'blank': 'True'}),
- 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'creator': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'creator'", 'null': 'True', 'on_delete': 'models.SET_NULL', 'to': "orm['auth.User']"}),
- 'description': ('django.db.models.fields.TextField', [], {}),
- 'featured': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True'}),
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'location': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Location']", 'null': 'True', 'on_delete': 'models.SET_NULL', 'blank': 'True'}),
- 'modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
- 'modified_user': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'modified_user'", 'null': 'True', 'on_delete': 'models.SET_NULL', 'to': "orm['auth.User']"}),
- 'participants': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['main.Participant']", 'symmetrical': 'False'}),
- 'placeholder_img': ('sorl.thumbnail.fields.ImageField', [], {'max_length': '100'}),
- 'public': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True'}),
- 'short_description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '215', 'blank': 'True'}),
- 'start_time': ('django.db.models.fields.DateTimeField', [], {'db_index': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'initiated'", 'max_length': '20', 'db_index': 'True'}),
- 'tags': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['main.Tag']", 'symmetrical': 'False', 'blank': 'True'}),
- 'template': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Template']", 'null': 'True', 'on_delete': 'models.SET_NULL', 'blank': 'True'}),
- 'template_environment': ('airmozilla.main.fields.EnvironmentField', [], {'blank': 'True'}),
- 'title': ('django.db.models.fields.CharField', [], {'max_length': '200'})
- },
- 'main.eventoldslug': {
- 'Meta': {'object_name': 'EventOldSlug'},
- 'event': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Event']"}),
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '215'})
- },
- 'main.location': {
- 'Meta': {'object_name': 'Location'},
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '300'}),
- 'timezone': ('django.db.models.fields.CharField', [], {'max_length': '250'})
- },
- 'main.participant': {
- 'Meta': {'object_name': 'Participant'},
- 'blog_url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'}),
- 'clear_token': ('django.db.models.fields.CharField', [], {'max_length': '36', 'blank': 'True'}),
- 'cleared': ('django.db.models.fields.CharField', [], {'default': "'no'", 'max_length': '15', 'db_index': 'True'}),
- 'creator': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'participant_creator'", 'null': 'True', 'on_delete': 'models.SET_NULL', 'to': "orm['auth.User']"}),
- 'department': ('django.db.models.fields.CharField', [], {'max_length': '50', 'blank': 'True'}),
- 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'irc': ('django.db.models.fields.CharField', [], {'max_length': '50', 'blank': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
- 'photo': ('sorl.thumbnail.fields.ImageField', [], {'max_length': '100', 'blank': 'True'}),
- 'role': ('django.db.models.fields.CharField', [], {'max_length': '25'}),
- 'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '65', 'blank': 'True'}),
- 'team': ('django.db.models.fields.CharField', [], {'max_length': '50', 'blank': 'True'}),
- 'topic_url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'}),
- 'twitter': ('django.db.models.fields.CharField', [], {'max_length': '50', 'blank': 'True'})
- },
- 'main.tag': {
- 'Meta': {'object_name': 'Tag'},
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- 'main.template': {
- 'Meta': {'object_name': 'Template'},
- 'content': ('django.db.models.fields.TextField', [], {}),
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
- }
- }
-
- complete_apps = ['main']
View
144 airmozilla/main/migrations/0006_auto__add_field_event_privacy.py
@@ -1,144 +0,0 @@
-# -*- coding: utf-8 -*-
-import datetime
-from south.db import db
-from south.v2 import SchemaMigration
-from django.db import models
-
-
-class Migration(SchemaMigration):
-
- def forwards(self, orm):
- # Adding field 'Event.privacy'
- db.add_column('main_event', 'privacy',
- self.gf('django.db.models.fields.CharField')(default='public', max_length=40, db_index=True),
- keep_default=False)
-
- def backwards(self, orm):
- # Deleting field 'Event.privacy'
- db.delete_column('main_event', 'privacy')
-
-
- 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'})
- },
- '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'})
- },
- 'main.approval': {
- 'Meta': {'object_name': 'Approval'},
- 'approved': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True'}),
- 'comment': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'event': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Event']"}),
- 'group': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.Group']", 'null': 'True', 'on_delete': 'models.SET_NULL', 'blank': 'True'}),
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'processed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True'}),
- 'processed_time': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True', 'on_delete': 'models.SET_NULL', 'blank': 'True'})
- },
- 'main.category': {
- 'Meta': {'ordering': "['name']", 'object_name': 'Category'},
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- 'main.event': {
- 'Meta': {'object_name': 'Event'},
- 'additional_links': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'archive_time': ('django.db.models.fields.DateTimeField', [], {'db_index': 'True', 'null': 'True', 'blank': 'True'}),
- 'call_info': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'category': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Category']", 'null': 'True', 'on_delete': 'models.SET_NULL', 'blank': 'True'}),
- 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'creator': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'creator'", 'null': 'True', 'on_delete': 'models.SET_NULL', 'to': "orm['auth.User']"}),
- 'description': ('django.db.models.fields.TextField', [], {}),
- 'featured': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True'}),
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'location': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Location']", 'null': 'True', 'on_delete': 'models.SET_NULL', 'blank': 'True'}),
- 'modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
- 'modified_user': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'modified_user'", 'null': 'True', 'on_delete': 'models.SET_NULL', 'to': "orm['auth.User']"}),
- 'participants': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['main.Participant']", 'symmetrical': 'False'}),
- 'placeholder_img': ('sorl.thumbnail.fields.ImageField', [], {'max_length': '100'}),
- 'privacy': ('django.db.models.fields.CharField', [], {'default': "'public'", 'max_length': '40', 'db_index': 'True'}),
- 'public': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True'}),
- 'short_description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '215', 'blank': 'True'}),
- 'start_time': ('django.db.models.fields.DateTimeField', [], {'db_index': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'initiated'", 'max_length': '20', 'db_index': 'True'}),
- 'tags': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['main.Tag']", 'symmetrical': 'False', 'blank': 'True'}),
- 'template': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Template']", 'null': 'True', 'on_delete': 'models.SET_NULL', 'blank': 'True'}),
- 'template_environment': ('airmozilla.main.fields.EnvironmentField', [], {'blank': 'True'}),
- 'title': ('django.db.models.fields.CharField', [], {'max_length': '200'})
- },
- 'main.eventoldslug': {
- 'Meta': {'object_name': 'EventOldSlug'},
- 'event': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Event']"}),
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '215'})
- },
- 'main.location': {
- 'Meta': {'object_name': 'Location'},
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '300'}),
- 'timezone': ('django.db.models.fields.CharField', [], {'max_length': '250'})
- },
- 'main.participant': {
- 'Meta': {'object_name': 'Participant'},
- 'blog_url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'}),
- 'clear_token': ('django.db.models.fields.CharField', [], {'max_length': '36', 'blank': 'True'}),
- 'cleared': ('django.db.models.fields.CharField', [], {'default': "'no'", 'max_length': '15', 'db_index': 'True'}),
- 'creator': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'participant_creator'", 'null': 'True', 'on_delete': 'models.SET_NULL', 'to': "orm['auth.User']"}),
- 'department': ('django.db.models.fields.CharField', [], {'max_length': '50', 'blank': 'True'}),
- 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'irc': ('django.db.models.fields.CharField', [], {'max_length': '50', 'blank': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
- 'photo': ('sorl.thumbnail.fields.ImageField', [], {'max_length': '100', 'blank': 'True'}),
- 'role': ('django.db.models.fields.CharField', [], {'max_length': '25'}),
- 'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '65', 'blank': 'True'}),
- 'team': ('django.db.models.fields.CharField', [], {'max_length': '50', 'blank': 'True'}),
- 'topic_url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'}),
- 'twitter': ('django.db.models.fields.CharField', [], {'max_length': '50', 'blank': 'True'})
- },
- 'main.tag': {
- 'Meta': {'object_name': 'Tag'},
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- 'main.template': {
- 'Meta': {'object_name': 'Template'},
- 'content': ('django.db.models.fields.TextField', [], {}),
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
- }
- }
-
- complete_apps = ['main']
View
155 airmozilla/main/migrations/0007_copying_public_to_privacy.py
@@ -1,155 +0,0 @@
-# -*- coding: utf-8 -*-
-import datetime
-from south.db import db
-from south.v2 import DataMigration
-from django.db import models
-
-class Migration(DataMigration):
-
- def forwards(self, orm):
- "Write your forwards methods here."
- # Note: Remember to use orm['appname.ModelName'] rather than "from appname.models..."
-
- #for event in orm['airmozilla.main.Event'].objects.filter(public=True):
- # event.privacy = orm['airmozilla.main.Event'].PRIVACY_PUBLIC
- # event.save()
- #for event in orm['airmozilla.main.Event'].objects.filter(public=False):
- # event.privacy = orm['airmozilla.main.Event'].PRIVACY_COMPANY
- # event.save()
-
- for event in orm.Event.objects.filter(public=True):
- event.privacy = 'public'
- event.save()
- for event in orm.Event.objects.filter(public=False):
- event.privacy = 'company'
- event.save()
-
- def backwards(self, orm):
- "Write your backwards methods here."
- pass
-
- 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'})
- },
- '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'})
- },
- 'main.approval': {
- 'Meta': {'object_name': 'Approval'},
- 'approved': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True'}),
- 'comment': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'event': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Event']"}),
- 'group': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.Group']", 'null': 'True', 'on_delete': 'models.SET_NULL', 'blank': 'True'}),
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'processed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True'}),
- 'processed_time': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True', 'on_delete': 'models.SET_NULL', 'blank': 'True'})
- },
- 'main.category': {
- 'Meta': {'ordering': "['name']", 'object_name': 'Category'},
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- 'main.event': {
- 'Meta': {'object_name': 'Event'},
- 'additional_links': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'archive_time': ('django.db.models.fields.DateTimeField', [], {'db_index': 'True', 'null': 'True', 'blank': 'True'}),
- 'call_info': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'category': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Category']", 'null': 'True', 'on_delete': 'models.SET_NULL', 'blank': 'True'}),
- 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'creator': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'creator'", 'null': 'True', 'on_delete': 'models.SET_NULL', 'to': "orm['auth.User']"}),
- 'description': ('django.db.models.fields.TextField', [], {}),
- 'featured': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True'}),
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'location': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Location']", 'null': 'True', 'on_delete': 'models.SET_NULL', 'blank': 'True'}),
- 'modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
- 'modified_user': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'modified_user'", 'null': 'True', 'on_delete': 'models.SET_NULL', 'to': "orm['auth.User']"}),
- 'participants': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['main.Participant']", 'symmetrical': 'False'}),
- 'placeholder_img': ('sorl.thumbnail.fields.ImageField', [], {'max_length': '100'}),
- 'privacy': ('django.db.models.fields.CharField', [], {'default': "'public'", 'max_length': '40', 'db_index': 'True'</