text: # -*- 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 'Page.order'
          db.add_column(u'blocks_page', 'order',
                        self.gf('blocks.fields.OrderField')(default=0, db_index=True),
                        keep_default=False)
  
  
      def backwards(self, orm):
          # Deleting field 'Page.order'
          db.delete_column(u'blocks_page', 'order')
  
  
      models = {
          u'blocks.menu': {
              'Meta': {'object_name': 'Menu'},
              'expiry_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
              u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'keyword': ('django.db.models.fields.CharField', [], {'max_length': '20', 'null': 'True', 'blank': 'True'}),
              u'level': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
              u'lft': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
              'name': ('django.db.models.fields.CharField', [], {'max_length': '200'}),
              'order': ('blocks.fields.OrderField', [], {'default': '0', 'db_index': 'True'}),
              'parent': ('mptt.fields.TreeForeignKey', [], {'blank': 'True', 'related_name': "'children'", 'null': 'True', 'to': u"orm['blocks.Menu']"}),
              'publish_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
              u'rght': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
              'sites': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['sites.Site']", 'db_index': 'True', 'symmetrical': 'False'}),
              'slug': ('blocks.fields.SlugURLField', [], {'max_length': '200', 'blank': 'True'}),
              'status': ('django.db.models.fields.IntegerField', [], {'default': '1', 'db_index': 'True'}),
              u'tree_id': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
              'type': ('django.db.models.fields.IntegerField', [], {'default': '1'}),
              'url': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200', 'db_index': 'True'})
          },
          u'blocks.menutranslation': {
              'Meta': {'unique_together': "[('language_code', 'master')]", 'object_name': 'MenuTranslation', 'db_table': "u'blocks_menu_translation'"},
              'description': ('django.db.models.fields.TextField', [], {'max_length': '200', 'blank': 'True'}),
              u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'language_code': ('django.db.models.fields.CharField', [], {'max_length': '15', 'db_index': 'True'}),
              'master': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'translations'", 'null': 'True', 'to': u"orm['blocks.Menu']"}),
              'title': ('django.db.models.fields.CharField', [], {'max_length': '80'})
          },
          u'blocks.page': {
              'Meta': {'ordering': "('url',)", 'object_name': 'Page'},
              'expiry_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
              u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'is_relative': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
              'menu': ('django.db.models.fields.CharField', [], {'max_length': '200'}),
              'name': ('django.db.models.fields.CharField', [], {'max_length': '200'}),
              'order': ('blocks.fields.OrderField', [], {'default': '0', 'db_index': 'True'}),
              'publish_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
              'sites': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['sites.Site']", 'db_index': 'True', 'symmetrical': 'False'}),
              'status': ('django.db.models.fields.IntegerField', [], {'default': '1', 'db_index': 'True'}),
              'template_name': ('django.db.models.fields.CharField', [], {'max_length': '70', 'blank': 'True'}),
              'url': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200', 'db_index': 'True'})
          },
          u'blocks.pagetranslation': {
              'Meta': {'unique_together': "[('language_code', 'master')]", 'object_name': 'PageTranslation', 'db_table': "u'blocks_page_translation'"},
              'content': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
              u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'language_code': ('django.db.models.fields.CharField', [], {'max_length': '15', 'db_index': 'True'}),
              'master': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'translations'", 'null': 'True', 'to': u"orm['blocks.Page']"}),
              'title': ('django.db.models.fields.CharField', [], {'max_length': '80'})
          },
          u'blocks.promotable': {
              'Meta': {'object_name': 'Promotable'},
              'expiry_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
              u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'promoted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
              'publish_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
              'sites': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['sites.Site']", 'db_index': 'True', 'symmetrical': 'False'}),
              'status': ('django.db.models.fields.IntegerField', [], {'default': '1', 'db_index': 'True'})
          },
          u'blocks.template': {
              'Meta': {'object_name': 'Template'},
              u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'name': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
              'template': ('django.db.models.fields.CharField', [], {'max_length': '200'})
          },
          u'sites.site': {
              'Meta': {'ordering': "('domain',)", 'object_name': 'Site', 'db_table': "'django_site'"},
              'domain': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
              u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
          }
      }
  
      complete_apps = ['blocks']