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 ('vip', self.gf('django.db.models.fields.CharField')(max_length=128, null=True, blank=True)),
17 ('link', self.gf('django.db.models.fields.URLField')(max_length=200)),
19 db.send_create_signal('social', ['Cite'])
22 def backwards(self, orm):
24 # Deleting model 'Cite'
25 db.delete_table('social_cite')
30 'Meta': {'ordering': "('sort_key',)", 'object_name': 'Book'},
31 '_related_info': ('jsonfield.fields.JSONField', [], {'null': 'True', 'blank': 'True'}),
32 'changed_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'db_index': 'True', 'blank': 'True'}),
33 'common_slug': ('django.db.models.fields.SlugField', [], {'max_length': '120', 'db_index': 'True'}),
34 'cover': ('django.db.models.fields.files.FileField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
35 'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'db_index': 'True', 'blank': 'True'}),
36 'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
37 'epub_file': ('django.db.models.fields.files.FileField', [], {'max_length': '100', 'blank': 'True'}),
38 'extra_info': ('catalogue.fields.JSONField', [], {'default': "'{}'"}),
39 'gazeta_link': ('django.db.models.fields.CharField', [], {'max_length': '240', 'blank': 'True'}),
40 'html_file': ('django.db.models.fields.files.FileField', [], {'max_length': '100', 'blank': 'True'}),
41 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
42 'language': ('django.db.models.fields.CharField', [], {'default': "'pol'", 'max_length': '3', 'db_index': 'True'}),
43 'mobi_file': ('django.db.models.fields.files.FileField', [], {'max_length': '100', 'blank': 'True'}),
44 'parent': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'children'", 'null': 'True', 'to': "orm['catalogue.Book']"}),
45 'parent_number': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
46 'pdf_file': ('django.db.models.fields.files.FileField', [], {'max_length': '100', 'blank': 'True'}),
47 'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '120', 'db_index': 'True'}),
48 'sort_key': ('django.db.models.fields.CharField', [], {'max_length': '120', 'db_index': 'True'}),
49 'title': ('django.db.models.fields.CharField', [], {'max_length': '120'}),
50 'txt_file': ('django.db.models.fields.files.FileField', [], {'max_length': '100', 'blank': 'True'}),
51 'wiki_link': ('django.db.models.fields.CharField', [], {'max_length': '240', 'blank': 'True'}),
52 'xml_file': ('django.db.models.fields.files.FileField', [], {'max_length': '100', 'blank': 'True'})
55 'Meta': {'object_name': 'Cite'},
56 'book': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['catalogue.Book']"}),
57 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
58 'link': ('django.db.models.fields.URLField', [], {'max_length': '200'}),
59 'text': ('django.db.models.fields.TextField', [], {}),
60 'vip': ('django.db.models.fields.CharField', [], {'max_length': '128', 'null': 'True', 'blank': 'True'})
64 complete_apps = ['social']