1 # -*- coding: utf-8 -*-
3 from south.db import db
4 from south.v2 import SchemaMigration
5 from django.db import models
8 class Migration(SchemaMigration):
10 def forwards(self, orm):
11 # Adding index on 'Offer', fields ['end']
12 db.create_index(u'funding_offer', ['end'])
14 # Adding index on 'Offer', fields ['start']
15 db.create_index(u'funding_offer', ['start'])
18 def backwards(self, orm):
19 # Removing index on 'Offer', fields ['start']
20 db.delete_index(u'funding_offer', ['start'])
22 # Removing index on 'Offer', fields ['end']
23 db.delete_index(u'funding_offer', ['end'])
28 'Meta': {'ordering': "('sort_key',)", 'object_name': 'Book'},
29 '_related_info': ('jsonfield.fields.JSONField', [], {'null': 'True', 'blank': 'True'}),
30 'changed_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'db_index': 'True', 'blank': 'True'}),
31 'common_slug': ('django.db.models.fields.SlugField', [], {'max_length': '120'}),
32 'cover': ('catalogue.fields.EbookField', [], {'max_length': '100', 'null': 'True', 'format_name': "'cover'", 'blank': 'True'}),
33 'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'db_index': 'True', 'blank': 'True'}),
34 'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
35 'epub_file': ('catalogue.fields.EbookField', [], {'default': "''", 'max_length': '100', 'format_name': "'epub'", 'blank': 'True'}),
36 'extra_info': ('jsonfield.fields.JSONField', [], {'default': "'{}'"}),
37 'fb2_file': ('catalogue.fields.EbookField', [], {'default': "''", 'max_length': '100', 'format_name': "'fb2'", 'blank': 'True'}),
38 'gazeta_link': ('django.db.models.fields.CharField', [], {'max_length': '240', 'blank': 'True'}),
39 'html_file': ('catalogue.fields.EbookField', [], {'default': "''", 'max_length': '100', 'format_name': "'html'", 'blank': 'True'}),
40 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
41 'language': ('django.db.models.fields.CharField', [], {'default': "'pol'", 'max_length': '3', 'db_index': 'True'}),
42 'mobi_file': ('catalogue.fields.EbookField', [], {'default': "''", 'max_length': '100', 'format_name': "'mobi'", 'blank': 'True'}),
43 'parent': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'children'", 'null': 'True', 'to': "orm['catalogue.Book']"}),
44 'parent_number': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
45 'pdf_file': ('catalogue.fields.EbookField', [], {'default': "''", 'max_length': '100', 'format_name': "'pdf'", 'blank': 'True'}),
46 'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '120'}),
47 'sort_key': ('django.db.models.fields.CharField', [], {'max_length': '120', 'db_index': 'True'}),
48 'title': ('django.db.models.fields.CharField', [], {'max_length': '120'}),
49 'txt_file': ('catalogue.fields.EbookField', [], {'default': "''", 'max_length': '100', 'format_name': "'txt'", 'blank': 'True'}),
50 'wiki_link': ('django.db.models.fields.CharField', [], {'max_length': '240', 'blank': 'True'}),
51 'xml_file': ('catalogue.fields.EbookField', [], {'default': "''", 'max_length': '100', 'format_name': "'xml'", 'blank': 'True'})
54 'Meta': {'ordering': "['-payed_at']", 'object_name': 'Funding'},
55 'amount': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '2'}),
56 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
57 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
58 'name': ('django.db.models.fields.CharField', [], {'max_length': '127', 'blank': 'True'}),
59 'offer': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['funding.Offer']"}),
60 'payed_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
61 'perks': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['funding.Perk']", 'symmetrical': 'False', 'blank': 'True'})
64 'Meta': {'ordering': "['-end']", 'object_name': 'Offer'},
65 'author': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
66 'book': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['catalogue.Book']", 'null': 'True', 'blank': 'True'}),
67 'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
68 'due': ('django.db.models.fields.DateField', [], {}),
69 'end': ('django.db.models.fields.DateField', [], {'db_index': 'True'}),
70 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
71 'redakcja_url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'}),
72 'slug': ('django.db.models.fields.SlugField', [], {'max_length': '50'}),
73 'start': ('django.db.models.fields.DateField', [], {'db_index': 'True'}),
74 'target': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '2'}),
75 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'})
78 'Meta': {'ordering': "['-price']", 'object_name': 'Perk'},
79 'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
80 'end_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
81 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
82 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
83 'offer': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['funding.Offer']", 'null': 'True', 'blank': 'True'}),
84 'price': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '2'})
87 'Meta': {'ordering': "['-timestamp']", 'object_name': 'Spent'},
88 'amount': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '2'}),
89 'book': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['catalogue.Book']"}),
90 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
91 'timestamp': ('django.db.models.fields.DateField', [], {})
95 complete_apps = ['funding']