Commits

Tyler Butler  committed 6640d69

Backup.

  • Participants
  • Parent commits 44ce19d

Comments (0)

Files changed (2)

+south_1.diff
 # Placed by Bitbucket

File south_1.diff

+# HG changeset patch
+# Parent 3ce30ad1a3310411e68d3bcb3e98c9a6aa69c7dd
+Initial south support.
+
+diff --git a/engineer/migrations/0001_INITIAL.PY b/engineer/migrations/0001_INITIAL.PY
+new file mode 100644
+--- /dev/null
++++ b/engineer/migrations/0001_INITIAL.PY
+@@ -0,0 +1,113 @@
++# encoding: 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 'Series'
++        db.create_table('engineer_series', (
++            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
++            ('title', self.gf('django.db.models.fields.CharField')(max_length=100)),
++            ('slug', self.gf('autoslug.fields.AutoSlugField')(unique=True, max_length=50, populate_from=None, unique_with=(), db_index=True)),
++            ('description', self.gf('django.db.models.fields.TextField')()),
++        ))
++        db.send_create_signal('engineer', ['Series'])
++
++        # Adding model 'Category'
++        db.create_table('engineer_category', (
++            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
++            ('name', self.gf('django.db.models.fields.CharField')(max_length=100)),
++            ('slug', self.gf('autoslug.fields.AutoSlugField')(unique=True, max_length=50, populate_from=None, unique_with=(), db_index=True)),
++            ('show_in_navigation', self.gf('django.db.models.fields.BooleanField')(default=False)),
++        ))
++        db.send_create_signal('engineer', ['Category'])
++
++        # Adding model 'Post'
++        db.create_table('engineer_post', (
++            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
++            ('title', self.gf('django.db.models.fields.CharField')(max_length=100)),
++            ('slug', self.gf('autoslug.fields.AutoSlugField')(unique_with=(), max_length=50, populate_from=None, db_index=True)),
++            ('timestamp', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime(2012, 1, 15, 16, 42, 33, 611000))),
++            ('post_type', self.gf('django.db.models.fields.CharField')(default=('p', 'Post'), max_length=1)),
++            ('status', self.gf('django.db.models.fields.CharField')(default='d', max_length=1)),
++            ('section', self.gf('django.db.models.fields.CharField')(default='none', max_length=10)),
++            ('content', self.gf('markitup.fields.MarkupField')(blank=True, null=True, no_rendered_field=True)),
++            ('cache_file', self.gf('django.db.models.fields.FilePathField')(max_length=100, null=True, blank=True)),
++            ('external_link', self.gf('django.db.models.fields.URLField')(max_length=200, null=True, blank=True)),
++            ('attribute_to', self.gf('django.db.models.fields.CharField')(max_length=50, null=True, blank=True)),
++            ('attribute_to_link', self.gf('django.db.models.fields.URLField')(max_length=200, null=True, blank=True)),
++            ('_content_rendered', self.gf('django.db.models.fields.TextField')(blank=True)),
++        ))
++        db.send_create_signal('engineer', ['Post'])
++
++
++    def backwards(self, orm):
++        
++        # Deleting model 'Series'
++        db.delete_table('engineer_series')
++
++        # Deleting model 'Category'
++        db.delete_table('engineer_category')
++
++        # Deleting model 'Post'
++        db.delete_table('engineer_post')
++
++
++    models = {
++        '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'})
++        },
++        'engineer.category': {
++            'Meta': {'object_name': 'Category'},
++            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
++            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
++            'show_in_navigation': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
++            'slug': ('autoslug.fields.AutoSlugField', [], {'unique': 'True', 'max_length': '50', 'populate_from': 'None', 'unique_with': '()', 'db_index': 'True'})
++        },
++        'engineer.post': {
++            'Meta': {'ordering': "['-timestamp']", 'object_name': 'Post'},
++            '_content_rendered': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
++            'attribute_to': ('django.db.models.fields.CharField', [], {'max_length': '50', 'null': 'True', 'blank': 'True'}),
++            'attribute_to_link': ('django.db.models.fields.URLField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'}),
++            'cache_file': ('django.db.models.fields.FilePathField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
++            'content': ('markitup.fields.MarkupField', [], {'blank': 'True', 'null': 'True', 'no_rendered_field': 'True'}),
++            'external_link': ('django.db.models.fields.URLField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'}),
++            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
++            'post_type': ('django.db.models.fields.CharField', [], {'default': "('p', 'Post')", 'max_length': '1'}),
++            'section': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '10'}),
++            'slug': ('autoslug.fields.AutoSlugField', [], {'unique_with': '()', 'max_length': '50', 'populate_from': 'None', 'db_index': 'True'}),
++            'status': ('django.db.models.fields.CharField', [], {'default': "'d'", 'max_length': '1'}),
++            'timestamp': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2012, 1, 15, 16, 42, 33, 611000)'}),
++            'title': ('django.db.models.fields.CharField', [], {'max_length': '100'})
++        },
++        'engineer.series': {
++            'Meta': {'object_name': 'Series'},
++            'description': ('django.db.models.fields.TextField', [], {}),
++            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
++            'slug': ('autoslug.fields.AutoSlugField', [], {'unique': 'True', 'max_length': '50', 'populate_from': 'None', 'unique_with': '()', 'db_index': 'True'}),
++            'title': ('django.db.models.fields.CharField', [], {'max_length': '100'})
++        },
++        'taggit.tag': {
++            'Meta': {'object_name': 'Tag'},
++            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
++            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
++            'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '100', 'db_index': 'True'})
++        },
++        'taggit.taggeditem': {
++            'Meta': {'object_name': 'TaggedItem'},
++            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'taggit_taggeditem_tagged_items'", 'to': "orm['contenttypes.ContentType']"}),
++            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
++            'object_id': ('django.db.models.fields.IntegerField', [], {'db_index': 'True'}),
++            'tag': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'taggit_taggeditem_items'", 'to': "orm['taggit.Tag']"})
++        }
++    }
++
++    complete_apps = ['engineer']
+diff --git a/engineer/migrations/__init__.py b/engineer/migrations/__init__.py
+new file mode 100644
+diff --git a/setup.py b/setup.py
+--- a/setup.py
++++ b/setup.py
+@@ -14,6 +14,7 @@
+     long_description=open('README.txt').read(),
+     install_requires=[
+         "Django >= 1.3.1",
++        "South >= 0.7.3",
+     ],
+ 	zip_safe=True,
+ 	include_package_data=True,
+diff --git a/test_project/settings.py b/test_project/settings.py
+--- a/test_project/settings.py
++++ b/test_project/settings.py
+@@ -19,6 +19,10 @@
+     'taggit',
+     'engineer',
+     'test_project',
++    'south',
+ )
+ 
++SOUTH_TESTS_MIGRATE = False
++SKIP_SOUTH_TESTS = True
++
+ MARKITUP_FILTER = ('engineer.util.markdown_wrapper', {})