+++ /dev/null
-# -*- coding: utf-8 -*-
-import datetime
-from south.db import db
-from south.v2 import SchemaMigration
-from django.db import models
-
-
-class Migration(SchemaMigration):
-
- def forwards(self, orm):
- # Adding field 'Picture.areas'
- db.add_column(u'picture_picture', 'areas',
- self.gf('jsonfield.fields.JSONField')(default='{}'),
- keep_default=False)
-
-
- def backwards(self, orm):
- # Deleting field 'Picture.areas'
- db.delete_column(u'picture_picture', 'areas')
-
-
- models = {
- u'picture.picture': {
- 'Meta': {'ordering': "('sort_key',)", 'object_name': 'Picture'},
- 'areas': ('jsonfield.fields.JSONField', [], {'default': "'{}'"}),
- 'changed_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'db_index': 'True', 'blank': 'True'}),
- 'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'db_index': 'True', 'blank': 'True'}),
- 'html_file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'image_file': ('sorl.thumbnail.fields.ImageField', [], {'max_length': '100'}),
- 'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '120'}),
- 'sort_key': ('django.db.models.fields.CharField', [], {'max_length': '120', 'db_index': 'True'}),
- 'title': ('django.db.models.fields.CharField', [], {'max_length': '120'}),
- 'xml_file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'})
- }
- }
-
- complete_apps = ['picture']
\ No newline at end of file