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):
12 # Changing field 'Funding.payed_at'
13 db.alter_column(u'funding_funding', 'payed_at', self.gf('django.db.models.fields.DateTimeField')(null=True))
15 def backwards(self, orm):
17 # Changing field 'Funding.payed_at'
18 db.alter_column(u'funding_funding', 'payed_at', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime(2013, 4, 16, 0, 0)))
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 'anonymous': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
51 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
52 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
53 'name': ('django.db.models.fields.CharField', [], {'max_length': '127', 'blank': 'True'}),
54 'offer': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['funding.Offer']"}),
55 'payed_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
56 'perks': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['funding.Perk']", 'symmetrical': 'False', 'blank': 'True'})
59 'Meta': {'ordering': "['-end']", 'object_name': 'Offer'},
60 'author': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
61 'book': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['catalogue.Book']", 'null': 'True', 'blank': 'True'}),
62 'due': ('django.db.models.fields.DateField', [], {}),
63 'end': ('django.db.models.fields.DateField', [], {}),
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', [], {}),
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 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
75 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
76 'offer': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['funding.Offer']", 'null': 'True', 'blank': 'True'}),
77 'price': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '2'})
80 'Meta': {'ordering': "['-timestamp']", 'object_name': 'Spent'},
81 'amount': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '2'}),
82 'book': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['catalogue.Book']"}),
83 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
84 'timestamp': ('django.db.models.fields.DateField', [], {})
88 complete_apps = ['funding']