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 field 'Picture.areas'
12 db.add_column(u'picture_picture', 'areas',
13 self.gf('jsonfield.fields.JSONField')(default='{}'),
17 def backwards(self, orm):
18 # Deleting field 'Picture.areas'
19 db.delete_column(u'picture_picture', 'areas')
24 'Meta': {'ordering': "('sort_key',)", 'object_name': 'Picture'},
25 'areas': ('jsonfield.fields.JSONField', [], {'default': "'{}'"}),
26 'changed_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'db_index': 'True', 'blank': 'True'}),
27 'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'db_index': 'True', 'blank': 'True'}),
28 'html_file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
29 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
30 'image_file': ('sorl.thumbnail.fields.ImageField', [], {'max_length': '100'}),
31 'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '120'}),
32 'sort_key': ('django.db.models.fields.CharField', [], {'max_length': '120', 'db_index': 'True'}),
33 'title': ('django.db.models.fields.CharField', [], {'max_length': '120'}),
34 'xml_file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'})
38 complete_apps = ['picture']