going production #21
[wolnelektury.git] / apps / picture / migrations / 0008_auto__add_field_picturearea__related_info.py
1 # -*- coding: utf-8 -*-
2 import datetime
3 from south.db import db
4 from south.v2 import SchemaMigration
5 from django.db import models
6
7
8 class Migration(SchemaMigration):
9
10     def forwards(self, orm):
11         # Adding field 'Picture._related_info'
12         db.add_column(u'picture_picture', '_related_info',
13                       self.gf('jsonfield.fields.JSONField')(null=True, blank=True),
14                       keep_default=False)
15
16
17     def backwards(self, orm):
18         # Deleting field 'Picture._related_info'
19         db.delete_column(u'picture_picture', '_related_info')
20
21
22     models = {
23         u'picture.picture': {
24             'Meta': {'ordering': "('sort_key',)", 'object_name': 'Picture'},
25             '_related_info': ('jsonfield.fields.JSONField', [], {'null': 'True', 'blank': 'True'}),
26             'areas_json': ('jsonfield.fields.JSONField', [], {'default': '{}'}),
27             'changed_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'db_index': 'True', 'blank': 'True'}),
28             'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'db_index': 'True', 'blank': 'True'}),
29             'culturepl_link': ('django.db.models.fields.CharField', [], {'max_length': '240', 'blank': 'True'}),
30             'extra_info': ('jsonfield.fields.JSONField', [], {'default': '{}'}),
31             'height': ('django.db.models.fields.IntegerField', [], {'null': 'True'}),
32             'html_file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
33             u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
34             'image_file': ('sorl.thumbnail.fields.ImageField', [], {'max_length': '100'}),
35             'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '120'}),
36             'sort_key': ('django.db.models.fields.CharField', [], {'max_length': '120', 'db_index': 'True'}),
37             'title': ('django.db.models.fields.CharField', [], {'max_length': '120'}),
38             'width': ('django.db.models.fields.IntegerField', [], {'null': 'True'}),
39             'wiki_link': ('django.db.models.fields.CharField', [], {'max_length': '240', 'blank': 'True'}),
40             'xml_file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'})
41         },
42         u'picture.picturearea': {
43             'Meta': {'object_name': 'PictureArea'},
44             'area': ('jsonfield.fields.JSONField', [], {'default': '{}'}),
45             u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
46             'kind': ('django.db.models.fields.CharField', [], {'max_length': '10', 'db_index': 'True'}),
47             'picture': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'areas'", 'to': u"orm['picture.Picture']"})
48         }
49     }
50
51     complete_apps = ['picture']