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 # Deleting field 'Picture.gazeta_link'
12 db.delete_column(u'picture_picture', 'gazeta_link')
14 # Adding field 'Picture.culturepl_link'
15 db.add_column(u'picture_picture', 'culturepl_link',
16 self.gf('django.db.models.fields.CharField')(default='', max_length=240, blank=True),
20 def backwards(self, orm):
21 # Adding field 'Picture.gazeta_link'
22 db.add_column(u'picture_picture', 'gazeta_link',
23 self.gf('django.db.models.fields.CharField')(default='', max_length=240, blank=True),
26 # Deleting field 'Picture.culturepl_link'
27 db.delete_column(u'picture_picture', 'culturepl_link')
32 'Meta': {'ordering': "('sort_key',)", 'object_name': 'Picture'},
33 'areas': ('jsonfield.fields.JSONField', [], {'default': '{}'}),
34 'changed_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'db_index': 'True', 'blank': 'True'}),
35 'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'db_index': 'True', 'blank': 'True'}),
36 'culturepl_link': ('django.db.models.fields.CharField', [], {'max_length': '240', 'blank': 'True'}),
37 'extra_info': ('jsonfield.fields.JSONField', [], {'default': '{}'}),
38 'html_file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
39 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
40 'image_file': ('sorl.thumbnail.fields.ImageField', [], {'max_length': '100'}),
41 'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '120'}),
42 'sort_key': ('django.db.models.fields.CharField', [], {'max_length': '120', 'db_index': 'True'}),
43 'title': ('django.db.models.fields.CharField', [], {'max_length': '120'}),
44 'wiki_link': ('django.db.models.fields.CharField', [], {'max_length': '240', 'blank': 'True'}),
45 'xml_file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'})
49 complete_apps = ['picture']