viewer basically implemented. going to wire information/links on the site
[wolnelektury.git] / apps / picture / migrations / 0002_auto__add_field_picture_areas.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.areas'
12         db.add_column(u'picture_picture', 'areas',
13                       self.gf('jsonfield.fields.JSONField')(default='{}'),
14                       keep_default=False)
15
16
17     def backwards(self, orm):
18         # Deleting field 'Picture.areas'
19         db.delete_column(u'picture_picture', 'areas')
20
21
22     models = {
23         u'picture.picture': {
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'})
35         }
36     }
37
38     complete_apps = ['picture']