3 from south.db import db
4 from south.v2 import SchemaMigration
5 from django.db import models
7 class Migration(SchemaMigration):
9 def forwards(self, orm):
12 db.create_table('social_cite', (
13 ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
14 ('book', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['catalogue.Book'])),
15 ('text', self.gf('django.db.models.fields.TextField')()),
16 ('small', self.gf('django.db.models.fields.BooleanField')(default=False)),
17 ('vip', self.gf('django.db.models.fields.CharField')(max_length=128, null=True, blank=True)),
18 ('link', self.gf('django.db.models.fields.URLField')(max_length=200)),
20 db.send_create_signal('social', ['Cite'])
23 def backwards(self, orm):
25 # Deleting model 'Cite'
26 db.delete_table('social_cite')
31 'Meta': {'ordering': "('sort_key',)", 'object_name': 'Book'},
32 '_related_info': ('jsonfield.fields.JSONField', [], {'null': 'True', 'blank': 'True'}),
33 'changed_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'db_index': 'True', 'blank': 'True'}),
34 'common_slug': ('django.db.models.fields.SlugField', [], {'max_length': '120', 'db_index': 'True'}),
35 'cover': ('django.db.models.fields.files.FileField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
36 'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'db_index': 'True', 'blank': 'True'}),
37 'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
38 'epub_file': ('django.db.models.fields.files.FileField', [], {'max_length': '100', 'blank': 'True'}),
39 'extra_info': ('jsonfield.fields.JSONField', [], {'default': "'{}'"}),
40 'gazeta_link': ('django.db.models.fields.CharField', [], {'max_length': '240', 'blank': 'True'}),
41 'html_file': ('django.db.models.fields.files.FileField', [], {'max_length': '100', 'blank': 'True'}),
42 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
43 'language': ('django.db.models.fields.CharField', [], {'default': "'pol'", 'max_length': '3', 'db_index': 'True'}),
44 'mobi_file': ('django.db.models.fields.files.FileField', [], {'max_length': '100', 'blank': 'True'}),
45 'parent': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'children'", 'null': 'True', 'to': "orm['catalogue.Book']"}),
46 'parent_number': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
47 'pdf_file': ('django.db.models.fields.files.FileField', [], {'max_length': '100', 'blank': 'True'}),
48 'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '120', 'db_index': 'True'}),
49 'sort_key': ('django.db.models.fields.CharField', [], {'max_length': '120', 'db_index': 'True'}),
50 'title': ('django.db.models.fields.CharField', [], {'max_length': '120'}),
51 'txt_file': ('django.db.models.fields.files.FileField', [], {'max_length': '100', 'blank': 'True'}),
52 'wiki_link': ('django.db.models.fields.CharField', [], {'max_length': '240', 'blank': 'True'}),
53 'xml_file': ('django.db.models.fields.files.FileField', [], {'max_length': '100', 'blank': 'True'})
56 'Meta': {'ordering': "('vip', 'text')", 'object_name': 'Cite'},
57 'book': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['catalogue.Book']"}),
58 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
59 'link': ('django.db.models.fields.URLField', [], {'max_length': '200'}),
60 'small': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
61 'text': ('django.db.models.fields.TextField', [], {}),
62 'vip': ('django.db.models.fields.CharField', [], {'max_length': '128', 'null': 'True', 'blank': 'True'})
66 complete_apps = ['social']