text: # 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 field 'FoiLaw.long_description'
          db.add_column('publicbody_foilaw', 'long_description', self.gf('django.db.models.fields.TextField')(default='', blank=True), keep_default=False)
  
          # Adding field 'FoiLaw.meta'
          db.add_column('publicbody_foilaw', 'meta', self.gf('django.db.models.fields.BooleanField')(default=False), keep_default=False)
  
          # Adding M2M table for field combined on 'FoiLaw'
          db.create_table('publicbody_foilaw_combined', (
              ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
              ('from_foilaw', models.ForeignKey(orm['publicbody.foilaw'], null=False)),
              ('to_foilaw', models.ForeignKey(orm['publicbody.foilaw'], null=False))
          ))
          db.create_unique('publicbody_foilaw_combined', ['from_foilaw_id', 'to_foilaw_id'])
  
  
      def backwards(self, orm):
          
          # Deleting field 'FoiLaw.long_description'
          db.delete_column('publicbody_foilaw', 'long_description')
  
          # Deleting field 'FoiLaw.meta'
          db.delete_column('publicbody_foilaw', 'meta')
  
          # Removing M2M table for field combined on 'FoiLaw'
          db.delete_table('publicbody_foilaw_combined')
  
  
      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'})
          },
          'publicbody.foilaw': {
              'Meta': {'object_name': 'FoiLaw'},
              'combined': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['publicbody.FoiLaw']", 'symmetrical': 'False'}),
              'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
              'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'jurisdiction': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
              'letter_end': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
              'letter_start': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
              'long_description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
              'max_response_time': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
              'max_response_time_unit': ('django.db.models.fields.CharField', [], {'max_length': '32', 'blank': 'True'}),
              'meta': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
              'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
              'priority': ('django.db.models.fields.SmallIntegerField', [], {'default': '3'}),
              'refusal_reasons': ('django.db.models.fields.TextField', [], {}),
              'site': ('django.db.models.fields.related.ForeignKey', [], {'default': '1', 'to': "orm['sites.Site']", 'null': 'True'}),
              'slug': ('django.db.models.fields.SlugField', [], {'max_length': '255', 'db_index': 'True'}),
              'url': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'})
          },
          'publicbody.publicbody': {
              'Meta': {'object_name': 'PublicBody'},
              '_created_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'public_body_creators'", 'null': 'True', 'to': "orm['auth.User']"}),
              '_updated_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'public_body_updaters'", 'null': 'True', 'to': "orm['auth.User']"}),
              'address': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
              'classification': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
              'classification_slug': ('django.db.models.fields.SlugField', [], {'max_length': '255', 'db_index': 'True'}),
              'confirmed': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
              'contact': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
              'depth': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
              'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
              'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'null': 'True', 'blank': 'True'}),
              'geography': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
              'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'laws': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['publicbody.FoiLaw']", 'symmetrical': 'False'}),
              'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
              'number_of_requests': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
              'parent': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': "'children'", 'null': 'True', 'blank': 'True', 'to': "orm['publicbody.PublicBody']"}),
              'root': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': "'descendants'", 'null': 'True', 'blank': 'True', 'to': "orm['publicbody.PublicBody']"}),
              'site': ('django.db.models.fields.related.ForeignKey', [], {'default': '1', 'to': "orm['sites.Site']", 'null': 'True'}),
              'slug': ('django.db.models.fields.SlugField', [], {'max_length': '255', 'db_index': 'True'}),
              'topic': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['publicbody.PublicBodyTopic']", 'null': 'True'}),
              'url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'}),
              'website_dump': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'})
          },
          'publicbody.publicbodytopic': {
              'Meta': {'object_name': 'PublicBodyTopic'},
              'count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
              'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
              'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
              'slug': ('django.db.models.fields.SlugField', [], {'max_length': '255', 'db_index': 'True'})
          },
          'sites.site': {
              'Meta': {'ordering': "('domain',)", 'object_name': 'Site', 'db_table': "'django_site'"},
              'domain': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
              'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
          }
      }
  
      complete_apps = ['publicbody']
  