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 'Funding', fields ['payed_at']
12 db.create_index(u'funding_funding', ['payed_at'])
15 def backwards(self, orm):
16 # Removing index on 'Funding', fields ['payed_at']
17 db.delete_index(u'funding_funding', ['payed_at'])
22 'Meta': {'ordering': "('sort_key',)", 'object_name': 'Book'},
23 '_related_info': ('jsonfield.fields.JSONField', [], {'null': 'True', 'blank': 'True'}),
24 'changed_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'db_index': 'True', 'blank': 'True'}),
25 'common_slug': ('django.db.models.fields.SlugField', [], {'max_length': '120'}),
26 'cover': ('catalogue.fields.EbookField', [], {'max_length': '100', 'null': 'True', 'format_name': "'cover'", 'blank': 'True'}),
27 'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'db_index': 'True', 'blank': 'True'}),
28 'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
29 'epub_file': ('catalogue.fields.EbookField', [], {'default': "''", 'max_length': '100', 'format_name': "'epub'", 'blank': 'True'}),
30 'extra_info': ('jsonfield.fields.JSONField', [], {'default': "'{}'"}),
31 'fb2_file': ('catalogue.fields.EbookField', [], {'default': "''", 'max_length': '100', 'format_name': "'fb2'", 'blank': 'True'}),
32 'gazeta_link': ('django.db.models.fields.CharField', [], {'max_length': '240', 'blank': 'True'}),
33 'html_file': ('catalogue.fields.EbookField', [], {'default': "''", 'max_length': '100', 'format_name': "'html'", 'blank': 'True'}),
34 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
35 'language': ('django.db.models.fields.CharField', [], {'default': "'pol'", 'max_length': '3', 'db_index': 'True'}),
36 'mobi_file': ('catalogue.fields.EbookField', [], {'default': "''", 'max_length': '100', 'format_name': "'mobi'", 'blank': 'True'}),
37 'parent': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'children'", 'null': 'True', 'to': "orm['catalogue.Book']"}),
38 'parent_number': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
39 'pdf_file': ('catalogue.fields.EbookField', [], {'default': "''", 'max_length': '100', 'format_name': "'pdf'", 'blank': 'True'}),
40 'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '120'}),
41 'sort_key': ('django.db.models.fields.CharField', [], {'max_length': '120', 'db_index': 'True'}),
42 'title': ('django.db.models.fields.CharField', [], {'max_length': '120'}),
43 'txt_file': ('catalogue.fields.EbookField', [], {'default': "''", 'max_length': '100', 'format_name': "'txt'", 'blank': 'True'}),
44 'wiki_link': ('django.db.models.fields.CharField', [], {'max_length': '240', 'blank': 'True'}),
45 'xml_file': ('catalogue.fields.EbookField', [], {'default': "''", 'max_length': '100', 'format_name': "'xml'", 'blank': 'True'})
48 'Meta': {'ordering': "['-payed_at']", 'object_name': 'Funding'},
49 'amount': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '2'}),
50 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
51 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
52 'name': ('django.db.models.fields.CharField', [], {'max_length': '127', 'blank': 'True'}),
53 'offer': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['funding.Offer']"}),
54 'payed_at': ('django.db.models.fields.DateTimeField', [], {'db_index': 'True', 'null': 'True', 'blank': 'True'}),
55 'perks': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['funding.Perk']", 'symmetrical': 'False', 'blank': 'True'})
58 'Meta': {'ordering': "['-end']", 'object_name': 'Offer'},
59 'author': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
60 'book': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['catalogue.Book']", 'null': 'True', 'blank': 'True'}),
61 'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
62 'due': ('django.db.models.fields.DateField', [], {}),
63 'end': ('django.db.models.fields.DateField', [], {'db_index': 'True'}),
64 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
65 'redakcja_url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'}),
66 'slug': ('django.db.models.fields.SlugField', [], {'max_length': '50'}),
67 'start': ('django.db.models.fields.DateField', [], {'db_index': 'True'}),
68 'target': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '2'}),
69 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'})
72 'Meta': {'ordering': "['-price']", 'object_name': 'Perk'},
73 'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
74 'end_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
75 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
76 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
77 'offer': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['funding.Offer']", 'null': 'True', 'blank': 'True'}),
78 'price': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '2'})
81 'Meta': {'ordering': "['-timestamp']", 'object_name': 'Spent'},
82 'amount': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '2'}),
83 'book': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['catalogue.Book']"}),
84 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
85 'timestamp': ('django.db.models.fields.DateField', [], {})
89 complete_apps = ['funding']