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 model 'Follow'
          db.create_table(u'follow_follow', (
              (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
              ('user', self.gf('django.db.models.fields.related.ForeignKey')(related_name='following', to=orm['auth.User'])),
              ('datetime', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
              ('target_company', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='follow_company', null=True, to=orm['companies.Company'])),
              ('target_article', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='follow_article', null=True, to=orm['articles.Article'])),
          ))
          db.send_create_signal(u'follow', ['Follow'])
  
  
      def backwards(self, orm):
          # Deleting model 'Follow'
          db.delete_table(u'follow_follow')
  
  
      models = {
          u'actstream.action': {
              'Meta': {'ordering': "('-timestamp',)", 'object_name': 'Action'},
              'action_object_content_type': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'action_object'", 'null': 'True', 'to': u"orm['contenttypes.ContentType']"}),
              'action_object_object_id': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
              'actor_content_type': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'actor'", 'to': u"orm['contenttypes.ContentType']"}),
              'actor_object_id': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
              'batch_time_minutes': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
              'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
              u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'is_batchable': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
              'public': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
              'target_content_type': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'target'", 'null': 'True', 'to': u"orm['contenttypes.ContentType']"}),
              'target_object_id': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
              'timestamp': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
              'verb': ('django.db.models.fields.CharField', [], {'max_length': '255'})
          },
          u'articles.article': {
              'Meta': {'ordering': "('-publish_up',)", 'object_name': 'Article'},
              'access': ('django.db.models.fields.SmallIntegerField', [], {'default': '1'}),
              'authors': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'author_list'", 'null': 'True', 'symmetrical': 'False', 'to': u"orm['auth.User']"}),
              'category': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'category'", 'to': u"orm['articles.Category']"}),
              'comments_allowed': ('django.db.models.fields.SmallIntegerField', [], {'default': '1'}),
              'companies': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'company_list'", 'null': 'True', 'symmetrical': 'False', 'to': u"orm['companies.Company']"}),
              'content': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
              'countries': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'country_list'", 'symmetrical': 'False', 'to': u"orm['cities_light.Country']"}),
              'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
              'created_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'article_created_by'", 'to': u"orm['auth.User']"}),
              'excerpt': ('django.db.models.fields.TextField', [], {}),
              u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'images': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'image_list'", 'null': 'True', 'symmetrical': 'False', 'to': u"orm['articles.Image']"}),
              'publish_down': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
              'publish_up': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2013, 10, 10, 0, 0)'}),
              'related': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'related_content_list'", 'to': u"orm['articles.Article']", 'through': u"orm['articles.ArticleRelated']", 'blank': 'True', 'symmetrical': 'False', 'null': 'True'}),
              'slug': ('django.db.models.fields.SlugField', [], {'max_length': '50'}),
              'state': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
              'subcategory': ('smart_selects.db_fields.ChainedForeignKey', [], {'to': u"orm['articles.Category']"}),
              'title': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
              'updated': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
              'updated_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'article_updated_by'", 'null': 'True', 'to': u"orm['auth.User']"})
          },
          u'articles.articlerelated': {
              'Meta': {'ordering': "['from_content', 'order']", 'unique_together': "(('from_content', 'order'), ('from_content', 'to_content'))", 'object_name': 'ArticleRelated', 'db_table': "'articles_article_related'"},
              'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
              'created_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'articlerelated_created_by'", 'to': u"orm['auth.User']"}),
              'from_content': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'from_content'", 'to': u"orm['articles.Article']"}),
              u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'order': ('django.db.models.fields.PositiveSmallIntegerField', [], {'default': '1'}),
              'to_content': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'to_content'", 'to': u"orm['articles.Article']"}),
              'updated': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
              'updated_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'articlerelated_updated_by'", 'null': 'True', 'to': u"orm['auth.User']"})
          },
          u'articles.category': {
              'Meta': {'object_name': 'Category'},
              'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
              'created_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'category_created_by'", 'to': u"orm['auth.User']"}),
              u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'level': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
              'lft': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
              'parent': ('mptt.fields.TreeForeignKey', [], {'blank': 'True', 'related_name': "'children'", 'null': 'True', 'to': u"orm['articles.Category']"}),
              'rght': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
              'slug': ('django.db.models.fields.SlugField', [], {'max_length': '50'}),
              'state': ('django.db.models.fields.SmallIntegerField', [], {'default': '1'}),
              'title': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
              'tree_id': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
              'updated': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
              'updated_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'category_updated_by'", 'null': 'True', 'to': u"orm['auth.User']"})
          },
          u'articles.image': {
              'Meta': {'ordering': "['article', 'order']", 'object_name': 'Image', '_ormbases': [u'articles.Resource']},
              u'resource_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': u"orm['articles.Resource']", 'unique': 'True', 'primary_key': 'True'})
          },
          u'articles.resource': {
              'Meta': {'ordering': "['article', 'order']", 'unique_together': "(('article', 'order'), ('article', 'resource_file'))", 'object_name': 'Resource'},
              'article': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['articles.Article']"}),
              'caption': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
              'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
              'created_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'resource_created_by'", 'to': u"orm['auth.User']"}),
              u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'order': ('django.db.models.fields.PositiveSmallIntegerField', [], {'default': '1'}),
              'resource_file': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['filer.File']"}),
              'resource_type': ('django.db.models.fields.SmallIntegerField', [], {'default': '3'}),
              'updated': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
              'updated_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'resource_updated_by'", 'null': 'True', 'to': u"orm['auth.User']"})
          },
          u'auth.group': {
              'Meta': {'object_name': 'Group'},
              u'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': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
          },
          u'auth.permission': {
              'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'},
              'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
              'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
              u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
          },
          u'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': u"orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}),
              u'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'}),
              'relationships': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'related_to'", 'symmetrical': 'False', 'through': u"orm['relationships.Relationship']", 'to': u"orm['auth.User']"}),
              'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}),
              'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
          },
          u'cities_light.country': {
              'Meta': {'object_name': 'Country'},
              'alternate_names': ('django.db.models.fields.TextField', [], {'default': "''", 'null': 'True', 'blank': 'True'}),
              'code2': ('django.db.models.fields.CharField', [], {'max_length': '2', 'unique': 'True', 'null': 'True', 'blank': 'True'}),
              'code3': ('django.db.models.fields.CharField', [], {'max_length': '3', 'unique': 'True', 'null': 'True', 'blank': 'True'}),
              'continent': ('django.db.models.fields.CharField', [], {'max_length': '2', 'db_index': 'True'}),
              'geoname_id': ('django.db.models.fields.IntegerField', [], {'unique': 'True', 'null': 'True', 'blank': 'True'}),
              u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'}),
              'name_ascii': ('django.db.models.fields.CharField', [], {'db_index': 'True', 'max_length': '200', 'blank': 'True'}),
              'slug': ('autoslug.fields.AutoSlugField', [], {'unique_with': '()', 'max_length': '50', 'populate_from': "'name_ascii'"}),
              'tld': ('django.db.models.fields.CharField', [], {'db_index': 'True', 'max_length': '5', 'blank': 'True'})
          },
          u'companies.company': {
              'Meta': {'object_name': 'Company'},
              u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'title': ('django.db.models.fields.CharField', [], {'max_length': '255'})
          },
          u'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'}),
              u'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'})
          },
          'filer.file': {
              'Meta': {'object_name': 'File'},
              '_file_size': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
              'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
              'file': ('django.db.models.fields.files.FileField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
              'folder': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'all_files'", 'null': 'True', 'to': "orm['filer.Folder']"}),
              'has_all_mandatory_data': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
              u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'is_public': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
              'modified_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
              'name': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255', 'blank': 'True'}),
              'original_filename': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
              'owner': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'owned_files'", 'null': 'True', 'to': u"orm['auth.User']"}),
              'polymorphic_ctype': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'polymorphic_filer.file_set'", 'null': 'True', 'to': u"orm['contenttypes.ContentType']"}),
              'sha1': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '40', 'blank': 'True'}),
              'uploaded_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'})
          },
          'filer.folder': {
              'Meta': {'ordering': "('name',)", 'unique_together': "(('parent', 'name'),)", 'object_name': 'Folder'},
              'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
              u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'level': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
              'lft': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
              'modified_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
              'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
              'owner': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'filer_owned_folders'", 'null': 'True', 'to': u"orm['auth.User']"}),
              'parent': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'children'", 'null': 'True', 'to': "orm['filer.Folder']"}),
              'rght': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
              'tree_id': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
              'uploaded_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'})
          },
          u'follow.follow': {
              'Meta': {'object_name': 'Follow'},
              'datetime': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
              u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'target_article': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'follow_article'", 'null': 'True', 'to': u"orm['articles.Article']"}),
              'target_company': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'follow_company'", 'null': 'True', 'to': u"orm['companies.Company']"}),
              'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'following'", 'to': u"orm['auth.User']"})
          },
          u'relationships.relationship': {
              'Meta': {'ordering': "('created',)", 'unique_together': "(('from_user', 'to_user', 'status', 'site'),)", 'object_name': 'Relationship'},
              'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
              'from_user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'from_users'", 'to': u"orm['auth.User']"}),
              u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'site': ('django.db.models.fields.related.ForeignKey', [], {'default': '1', 'related_name': "'relationships'", 'to': u"orm['sites.Site']"}),
              'status': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['relationships.RelationshipStatus']"}),
              'to_user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'to_users'", 'to': u"orm['auth.User']"}),
              'weight': ('django.db.models.fields.FloatField', [], {'default': '1.0', 'null': 'True', 'blank': 'True'})
          },
          u'relationships.relationshipstatus': {
              'Meta': {'ordering': "('name',)", 'object_name': 'RelationshipStatus'},
              'from_slug': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
              u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'login_required': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
              'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
              'private': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
              'symmetrical_slug': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
              'to_slug': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
              'verb': ('django.db.models.fields.CharField', [], {'max_length': '100'})
          },
          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'})
          },
          u'taggit.tag': {
              'Meta': {'object_name': 'Tag'},
              u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'}),
              'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '100'})
          },
          u'taggit.taggeditem': {
              'Meta': {'object_name': 'TaggedItem'},
              'content_type': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "u'taggit_taggeditem_tagged_items'", 'to': u"orm['contenttypes.ContentType']"}),
              u'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': "u'taggit_taggeditem_items'", 'to': u"orm['taggit.Tag']"})
          }
      }
  
      complete_apps = ['follow']