Permalink
Browse files

bug 889015, switched to South for migrations, removed nashvegas, r=pe…

…terbe
  • Loading branch information...
adngdb committed Jul 22, 2013
1 parent 6184c84 commit 5acbdd4e74376d8da5d255fa14f4349d6fd44047
Showing with 12,661 additions and 1,298 deletions.
  1. +0 −3 .gitmodules
  2. +258 −0 apps/l10nstats/migrations/0001_initial.py
  3. 0 apps/l10nstats/migrations/__init__.py
  4. +218 −0 apps/life/migrations/0001_initial.py
  5. 0 apps/life/migrations/__init__.py
  6. +12 −2 apps/mbdb/fields.py
  7. +356 −0 apps/mbdb/migrations/0001_initial.py
  8. 0 apps/mbdb/migrations/__init__.py
  9. +89 −0 apps/privacy/migrations/0001_initial.py
  10. 0 apps/privacy/migrations/__init__.py
  11. +301 −0 apps/shipping/migrations/0001_initial.py
  12. 0 apps/shipping/migrations/__init__.py
  13. +57 −0 apps/tinder/migrations/0001_initial.py
  14. 0 apps/tinder/migrations/__init__.py
  15. +152 −0 apps/webby/migrations/0001_initial.py
  16. 0 apps/webby/migrations/__init__.py
  17. +0 −790 migrations/0000_initial_schema.sql
  18. +0 −7 migrations/0001_webby-stage-auth_bug653180.sql
  19. +0 −5 migrations/0002_webby-archived-flag_bug640155.sql
  20. +0 −7 migrations/0003_shipping-appversion-without-tree_bug668806.sql
  21. +0 −6 migrations/0004_shipping-appversion-with-lasttree_bug668806.sql
  22. +0 −150 migrations/0005_data1_sql.py
  23. +0 −23 migrations/0006_data1_non_rapid.py
  24. +0 −70 migrations/0007_data1_rapid_cloned_signoffs.py
  25. +0 −183 migrations/0008_data1_rapid_trees.py
  26. +0 −6 migrations/0009_milestone_code_unique.sql
  27. +0 −40 migrations/0010_utcify_dates.sql
  28. +1 −0 requirements/prod.txt
  29. +2 −3 scripts/update_site.py
  30. +1 −1 settings/base.py
  31. +9 −0 vendor-local/lib/python/south/__init__.py
  32. +5 −0 vendor-local/lib/python/south/creator/__init__.py
  33. +556 −0 vendor-local/lib/python/south/creator/actions.py
  34. +506 −0 vendor-local/lib/python/south/creator/changes.py
  35. +192 −0 vendor-local/lib/python/south/creator/freezer.py
  36. +82 −0 vendor-local/lib/python/south/db/__init__.py
  37. +353 −0 vendor-local/lib/python/south/db/firebird.py
  38. +1,160 −0 vendor-local/lib/python/south/db/generic.py
  39. +283 −0 vendor-local/lib/python/south/db/mysql.py
  40. +318 −0 vendor-local/lib/python/south/db/oracle.py
  41. +96 −0 vendor-local/lib/python/south/db/postgresql_psycopg2.py
  42. 0 vendor-local/lib/python/south/db/sql_server/__init__.py
  43. +447 −0 vendor-local/lib/python/south/db/sql_server/pyodbc.py
  44. +272 −0 vendor-local/lib/python/south/db/sqlite3.py
  45. +155 −0 vendor-local/lib/python/south/exceptions.py
  46. +10 −0 vendor-local/lib/python/south/hacks/__init__.py
  47. +109 −0 vendor-local/lib/python/south/hacks/django_1_0.py
  48. +11 −0 vendor-local/lib/python/south/introspection_plugins/__init__.py
  49. +11 −0 vendor-local/lib/python/south/introspection_plugins/annoying_autoonetoone.py
  50. +30 −0 vendor-local/lib/python/south/introspection_plugins/django_audit_log.py
  51. +16 −0 vendor-local/lib/python/south/introspection_plugins/django_objectpermissions.py
  52. +24 −0 vendor-local/lib/python/south/introspection_plugins/django_tagging.py
  53. +14 −0 vendor-local/lib/python/south/introspection_plugins/django_taggit.py
  54. +21 −0 vendor-local/lib/python/south/introspection_plugins/django_timezones.py
  55. +45 −0 vendor-local/lib/python/south/introspection_plugins/geodjango.py
  56. +38 −0 vendor-local/lib/python/south/logger.py
  57. 0 vendor-local/lib/python/south/management/__init__.py
  58. +40 −0 vendor-local/lib/python/south/management/commands/__init__.py
  59. +95 −0 vendor-local/lib/python/south/management/commands/convert_to_south.py
  60. +128 −0 vendor-local/lib/python/south/management/commands/datamigration.py
  61. +63 −0 vendor-local/lib/python/south/management/commands/graphmigrations.py
  62. +264 −0 vendor-local/lib/python/south/management/commands/migrate.py
  63. +67 −0 vendor-local/lib/python/south/management/commands/migrationcheck.py
  64. +226 −0 vendor-local/lib/python/south/management/commands/schemamigration.py
  65. +33 −0 vendor-local/lib/python/south/management/commands/startmigration.py
  66. +113 −0 vendor-local/lib/python/south/management/commands/syncdb.py
  67. +8 −0 vendor-local/lib/python/south/management/commands/test.py
  68. +8 −0 vendor-local/lib/python/south/management/commands/testserver.py
  69. +235 −0 vendor-local/lib/python/south/migration/__init__.py
  70. +440 −0 vendor-local/lib/python/south/migration/base.py
  71. +357 −0 vendor-local/lib/python/south/migration/migrators.py
  72. +94 −0 vendor-local/lib/python/south/migration/utils.py
  73. +37 −0 vendor-local/lib/python/south/models.py
  74. +463 −0 vendor-local/lib/python/south/modelsinspector.py
  75. +403 −0 vendor-local/lib/python/south/orm.py
  76. +24 −0 vendor-local/lib/python/south/signals.py
  77. +108 −0 vendor-local/lib/python/south/tests/__init__.py
  78. +353 −0 vendor-local/lib/python/south/tests/autodetection.py
  79. 0 vendor-local/lib/python/south/tests/brokenapp/__init__.py
  80. +13 −0 vendor-local/lib/python/south/tests/brokenapp/migrations/0001_depends_on_unmigrated.py
  81. +13 −0 vendor-local/lib/python/south/tests/brokenapp/migrations/0002_depends_on_unknown.py
  82. +13 −0 vendor-local/lib/python/south/tests/brokenapp/migrations/0003_depends_on_higher.py
  83. +11 −0 vendor-local/lib/python/south/tests/brokenapp/migrations/0004_higher.py
  84. 0 vendor-local/lib/python/south/tests/brokenapp/migrations/__init__.py
  85. +55 −0 vendor-local/lib/python/south/tests/brokenapp/models.py
  86. 0 vendor-local/lib/python/south/tests/circular_a/__init__.py
  87. +13 −0 vendor-local/lib/python/south/tests/circular_a/migrations/0001_first.py
  88. 0 vendor-local/lib/python/south/tests/circular_a/migrations/__init__.py
  89. 0 vendor-local/lib/python/south/tests/circular_a/models.py
  90. 0 vendor-local/lib/python/south/tests/circular_b/__init__.py
  91. +13 −0 vendor-local/lib/python/south/tests/circular_b/migrations/0001_first.py
  92. 0 vendor-local/lib/python/south/tests/circular_b/migrations/__init__.py
  93. 0 vendor-local/lib/python/south/tests/circular_b/models.py
  94. +952 −0 vendor-local/lib/python/south/tests/db.py
  95. +164 −0 vendor-local/lib/python/south/tests/db_mysql.py
  96. 0 vendor-local/lib/python/south/tests/deps_a/__init__.py
  97. +11 −0 vendor-local/lib/python/south/tests/deps_a/migrations/0001_a.py
  98. +11 −0 vendor-local/lib/python/south/tests/deps_a/migrations/0002_a.py
  99. +11 −0 vendor-local/lib/python/south/tests/deps_a/migrations/0003_a.py
  100. +13 −0 vendor-local/lib/python/south/tests/deps_a/migrations/0004_a.py
  101. +11 −0 vendor-local/lib/python/south/tests/deps_a/migrations/0005_a.py
  102. 0 vendor-local/lib/python/south/tests/deps_a/migrations/__init__.py
  103. 0 vendor-local/lib/python/south/tests/deps_a/models.py
  104. 0 vendor-local/lib/python/south/tests/deps_b/__init__.py
  105. +11 −0 vendor-local/lib/python/south/tests/deps_b/migrations/0001_b.py
  106. +13 −0 vendor-local/lib/python/south/tests/deps_b/migrations/0002_b.py
  107. +13 −0 vendor-local/lib/python/south/tests/deps_b/migrations/0003_b.py
  108. +11 −0 vendor-local/lib/python/south/tests/deps_b/migrations/0004_b.py
  109. +11 −0 vendor-local/lib/python/south/tests/deps_b/migrations/0005_b.py
  110. 0 vendor-local/lib/python/south/tests/deps_b/migrations/__init__.py
  111. 0 vendor-local/lib/python/south/tests/deps_b/models.py
  112. 0 vendor-local/lib/python/south/tests/deps_c/__init__.py
  113. +11 −0 vendor-local/lib/python/south/tests/deps_c/migrations/0001_c.py
  114. +11 −0 vendor-local/lib/python/south/tests/deps_c/migrations/0002_c.py
  115. +11 −0 vendor-local/lib/python/south/tests/deps_c/migrations/0003_c.py
  116. +11 −0 vendor-local/lib/python/south/tests/deps_c/migrations/0004_c.py
  117. +13 −0 vendor-local/lib/python/south/tests/deps_c/migrations/0005_c.py
  118. 0 vendor-local/lib/python/south/tests/deps_c/migrations/__init__.py
  119. 0 vendor-local/lib/python/south/tests/deps_c/models.py
  120. 0 vendor-local/lib/python/south/tests/emptyapp/__init__.py
  121. 0 vendor-local/lib/python/south/tests/emptyapp/migrations/__init__.py
  122. 0 vendor-local/lib/python/south/tests/emptyapp/models.py
  123. 0 vendor-local/lib/python/south/tests/fakeapp/__init__.py
  124. +17 −0 vendor-local/lib/python/south/tests/fakeapp/migrations/0001_spam.py
  125. +20 −0 vendor-local/lib/python/south/tests/fakeapp/migrations/0002_eggs.py
  126. +18 −0 vendor-local/lib/python/south/tests/fakeapp/migrations/0003_alter_spam.py
  127. 0 vendor-local/lib/python/south/tests/fakeapp/migrations/__init__.py
  128. +111 −0 vendor-local/lib/python/south/tests/fakeapp/models.py
  129. +15 −0 vendor-local/lib/python/south/tests/freezer.py
  130. +109 −0 vendor-local/lib/python/south/tests/inspector.py
  131. +82 −0 vendor-local/lib/python/south/tests/logger.py
  132. +902 −0 vendor-local/lib/python/south/tests/logic.py
  133. 0 vendor-local/lib/python/south/tests/non_managed/__init__.py
  134. 0 vendor-local/lib/python/south/tests/non_managed/migrations/__init__.py
  135. +16 −0 vendor-local/lib/python/south/tests/non_managed/models.py
  136. 0 vendor-local/lib/python/south/tests/otherfakeapp/__init__.py
  137. +15 −0 vendor-local/lib/python/south/tests/otherfakeapp/migrations/0001_first.py
  138. +11 −0 vendor-local/lib/python/south/tests/otherfakeapp/migrations/0002_second.py
  139. +14 −0 vendor-local/lib/python/south/tests/otherfakeapp/migrations/0003_third.py
  140. 0 vendor-local/lib/python/south/tests/otherfakeapp/migrations/__init__.py
  141. +1 −0 vendor-local/lib/python/south/tests/otherfakeapp/models.py
  142. +73 −0 vendor-local/lib/python/south/utils/__init__.py
  143. +28 −0 vendor-local/lib/python/south/utils/datetime_utils.py
  144. +21 −0 vendor-local/lib/python/south/utils/py3.py
  145. +19 −0 vendor-local/lib/python/south/v2.py
  146. +0 −1 vendor-local/src/nashvegas
  147. +0 −1 vendor-local/vendor.pth
View
@@ -4,6 +4,3 @@
[submodule "vendor-local/src/compare-locales"]
path = vendor-local/src/compare-locales
url = git://github.com/Pike/compare-locales.git
-[submodule "vendor-local/src/nashvegas"]
- path = vendor-local/src/nashvegas
- url = git://github.com/paltman/nashvegas.git

Large diffs are not rendered by default.

Oops, something went wrong.
No changes.
@@ -0,0 +1,218 @@
+# -*- 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 model 'Locale'
+ db.create_table('life_locale', (
+ ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
+ ('code', self.gf('django.db.models.fields.CharField')(unique=True, max_length=30)),
+ ('name', self.gf('django.db.models.fields.CharField')(max_length=100, null=True, blank=True)),
+ ('native', self.gf('django.db.models.fields.CharField')(max_length=100, null=True, blank=True)),
+ ))
+ db.send_create_signal('life', ['Locale'])
+
+ # Adding model 'Branch'
+ db.create_table('life_branch', (
+ ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
+ ('name', self.gf('django.db.models.fields.TextField')()),
+ ))
+ db.send_create_signal('life', ['Branch'])
+
+ # Adding model 'Changeset'
+ db.create_table('life_changeset', (
+ ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
+ ('revision', self.gf('django.db.models.fields.CharField')(unique=True, max_length=40, db_index=True)),
+ ('user', self.gf('django.db.models.fields.CharField')(default='', max_length=200, db_index=True)),
+ ('description', self.gf('django.db.models.fields.TextField')(default='', null=True)),
+ ('branch', self.gf('django.db.models.fields.related.ForeignKey')(default=1, related_name='changesets', to=orm['life.Branch'])),
+ ))
+ db.send_create_signal('life', ['Changeset'])
+
+ # Adding M2M table for field files on 'Changeset'
+ m2m_table_name = db.shorten_name('life_changeset_files')
+ db.create_table(m2m_table_name, (
+ ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
+ ('changeset', models.ForeignKey(orm['life.changeset'], null=False)),
+ ('file', models.ForeignKey(orm['mbdb.file'], null=False))
+ ))
+ db.create_unique(m2m_table_name, ['changeset_id', 'file_id'])
+
+ # Adding M2M table for field parents on 'Changeset'
+ m2m_table_name = db.shorten_name('life_changeset_parents')
+ db.create_table(m2m_table_name, (
+ ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
+ ('from_changeset', models.ForeignKey(orm['life.changeset'], null=False)),
+ ('to_changeset', models.ForeignKey(orm['life.changeset'], null=False))
+ ))
+ db.create_unique(m2m_table_name, ['from_changeset_id', 'to_changeset_id'])
+
+ # Adding model 'Forest'
+ db.create_table('life_forest', (
+ ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
+ ('name', self.gf('django.db.models.fields.CharField')(unique=True, max_length=100)),
+ ('url', self.gf('django.db.models.fields.URLField')(max_length=200)),
+ ))
+ db.send_create_signal('life', ['Forest'])
+
+ # Adding model 'Repository'
+ db.create_table('life_repository', (
+ ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
+ ('name', self.gf('django.db.models.fields.CharField')(unique=True, max_length=100)),
+ ('url', self.gf('django.db.models.fields.URLField')(max_length=200)),
+ ('forest', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='repositories', null=True, to=orm['life.Forest'])),
+ ('locale', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['life.Locale'], null=True, blank=True)),
+ ))
+ db.send_create_signal('life', ['Repository'])
+
+ # Adding M2M table for field changesets on 'Repository'
+ m2m_table_name = db.shorten_name('life_repository_changesets')
+ db.create_table(m2m_table_name, (
+ ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
+ ('repository', models.ForeignKey(orm['life.repository'], null=False)),
+ ('changeset', models.ForeignKey(orm['life.changeset'], null=False))
+ ))
+ db.create_unique(m2m_table_name, ['repository_id', 'changeset_id'])
+
+ # Adding model 'Push'
+ db.create_table('life_push', (
+ ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
+ ('repository', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['life.Repository'])),
+ ('user', self.gf('django.db.models.fields.CharField')(max_length=200, db_index=True)),
+ ('push_date', self.gf('django.db.models.fields.DateTimeField')(db_index=True)),
+ ('push_id', self.gf('django.db.models.fields.PositiveIntegerField')(default=0)),
+ ))
+ db.send_create_signal('life', ['Push'])
+
+ # Adding M2M table for field changesets on 'Push'
+ m2m_table_name = db.shorten_name('life_push_changesets')
+ db.create_table(m2m_table_name, (
+ ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
+ ('push', models.ForeignKey(orm['life.push'], null=False)),
+ ('changeset', models.ForeignKey(orm['life.changeset'], null=False))
+ ))
+ db.create_unique(m2m_table_name, ['push_id', 'changeset_id'])
+
+ # Adding model 'Tree'
+ db.create_table('life_tree', (
+ ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
+ ('code', self.gf('django.db.models.fields.CharField')(unique=True, max_length=50)),
+ ('l10n', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['life.Forest'])),
+ ))
+ db.send_create_signal('life', ['Tree'])
+
+ # Adding M2M table for field repositories on 'Tree'
+ m2m_table_name = db.shorten_name('life_tree_repositories')
+ db.create_table(m2m_table_name, (
+ ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
+ ('tree', models.ForeignKey(orm['life.tree'], null=False)),
+ ('repository', models.ForeignKey(orm['life.repository'], null=False))
+ ))
+ db.create_unique(m2m_table_name, ['tree_id', 'repository_id'])
+
+
+ def backwards(self, orm):
+ # Deleting model 'Locale'
+ db.delete_table('life_locale')
+
+ # Deleting model 'Branch'
+ db.delete_table('life_branch')
+
+ # Deleting model 'Changeset'
+ db.delete_table('life_changeset')
+
+ # Removing M2M table for field files on 'Changeset'
+ db.delete_table(db.shorten_name('life_changeset_files'))
+
+ # Removing M2M table for field parents on 'Changeset'
+ db.delete_table(db.shorten_name('life_changeset_parents'))
+
+ # Deleting model 'Forest'
+ db.delete_table('life_forest')
+
+ # Deleting model 'Repository'
+ db.delete_table('life_repository')
+
+ # Removing M2M table for field changesets on 'Repository'
+ db.delete_table(db.shorten_name('life_repository_changesets'))
+
+ # Deleting model 'Push'
+ db.delete_table('life_push')
+
+ # Removing M2M table for field changesets on 'Push'
+ db.delete_table(db.shorten_name('life_push_changesets'))
+
+ # Deleting model 'Tree'
+ db.delete_table('life_tree')
+
+ # Removing M2M table for field repositories on 'Tree'
+ db.delete_table(db.shorten_name('life_tree_repositories'))
+
+
+ models = {
+ 'life.branch': {
+ 'Meta': {'object_name': 'Branch'},
+ 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'name': ('django.db.models.fields.TextField', [], {})
+ },
+ 'life.changeset': {
+ 'Meta': {'object_name': 'Changeset'},
+ 'branch': ('django.db.models.fields.related.ForeignKey', [], {'default': '1', 'related_name': "'changesets'", 'to': "orm['life.Branch']"}),
+ 'description': ('django.db.models.fields.TextField', [], {'default': "''", 'null': 'True'}),
+ 'files': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['mbdb.File']", 'symmetrical': 'False'}),
+ 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'parents': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'_children'", 'symmetrical': 'False', 'to': "orm['life.Changeset']"}),
+ 'revision': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '40', 'db_index': 'True'}),
+ 'user': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '200', 'db_index': 'True'})
+ },
+ 'life.forest': {
+ 'Meta': {'object_name': 'Forest'},
+ 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'}),
+ 'url': ('django.db.models.fields.URLField', [], {'max_length': '200'})
+ },
+ 'life.locale': {
+ 'Meta': {'object_name': 'Locale'},
+ 'code': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}),
+ 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
+ 'native': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'})
+ },
+ 'life.push': {
+ 'Meta': {'object_name': 'Push'},
+ 'changesets': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'pushes'", 'symmetrical': 'False', 'to': "orm['life.Changeset']"}),
+ 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'push_date': ('django.db.models.fields.DateTimeField', [], {'db_index': 'True'}),
+ 'push_id': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
+ 'repository': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['life.Repository']"}),
+ 'user': ('django.db.models.fields.CharField', [], {'max_length': '200', 'db_index': 'True'})
+ },
+ 'life.repository': {
+ 'Meta': {'object_name': 'Repository'},
+ 'changesets': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'repositories'", 'symmetrical': 'False', 'to': "orm['life.Changeset']"}),
+ 'forest': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'repositories'", 'null': 'True', 'to': "orm['life.Forest']"}),
+ 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'locale': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['life.Locale']", 'null': 'True', 'blank': 'True'}),
+ 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'}),
+ 'url': ('django.db.models.fields.URLField', [], {'max_length': '200'})
+ },
+ 'life.tree': {
+ 'Meta': {'object_name': 'Tree'},
+ 'code': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '50'}),
+ 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'l10n': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['life.Forest']"}),
+ 'repositories': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['life.Repository']", 'symmetrical': 'False'})
+ },
+ 'mbdb.file': {
+ 'Meta': {'object_name': 'File'},
+ 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'path': ('django.db.models.fields.CharField', [], {'max_length': '400', 'db_index': 'True'})
+ }
+ }
+
+ complete_apps = ['life']
No changes.
View
@@ -15,6 +15,8 @@
except ImportError:
import pickle
+from south.modelsinspector import add_introspection_rules
+
class PickledObject(str):
"""A subclass of string so it can be told whether a string is
@@ -23,7 +25,7 @@ class PickledObject(str):
pass
-class PickledObjectField(models.Field):
+class PickledObjectField(models.TextField):
__metaclass__ = models.SubfieldBase
def to_python(self, value):
@@ -66,7 +68,11 @@ def get_db_prep_lookup(self, lookup_type, value, connection,
connection=connection, prepared=True))
-class ListField(models.Field):
+# For South migrations to understand what this field is
+add_introspection_rules([], ["^mbdb\.fields\.PickledObjectField"])
+
+
+class ListField(models.TextField):
__metaclass__ = models.SubfieldBase
def to_python(self, value):
@@ -103,3 +109,7 @@ def get_db_prep_lookup(self, lookup_type, value, connection,
return super(ListField, self).get_db_prep_lookup(lookup_type, value,
connection=connection,
prepared=True)
+
+
+# For South migrations to understand what this field is
+add_introspection_rules([], ["^mbdb\.fields\.ListField"])
Oops, something went wrong.

0 comments on commit 5acbdd4

Please sign in to comment.