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 model 'Picture'
12 db.create_table(u'picture_picture', (
13 (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
14 ('title', self.gf('django.db.models.fields.CharField')(max_length=120)),
15 ('slug', self.gf('django.db.models.fields.SlugField')(unique=True, max_length=120)),
16 ('sort_key', self.gf('django.db.models.fields.CharField')(max_length=120, db_index=True)),
17 ('created_at', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, db_index=True, blank=True)),
18 ('changed_at', self.gf('django.db.models.fields.DateTimeField')(auto_now=True, db_index=True, blank=True)),
19 ('xml_file', self.gf('django.db.models.fields.files.FileField')(max_length=100)),
20 ('image_file', self.gf('sorl.thumbnail.fields.ImageField')(max_length=100)),
21 ('html_file', self.gf('django.db.models.fields.files.FileField')(max_length=100)),
23 db.send_create_signal(u'picture', ['Picture'])
26 def backwards(self, orm):
27 # Deleting model 'Picture'
28 db.delete_table(u'picture_picture')
33 'Meta': {'ordering': "('sort_key',)", 'object_name': 'Picture'},
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 'html_file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
37 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
38 'image_file': ('sorl.thumbnail.fields.ImageField', [], {'max_length': '100'}),
39 'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '120'}),
40 'sort_key': ('django.db.models.fields.CharField', [], {'max_length': '120', 'db_index': 'True'}),
41 'title': ('django.db.models.fields.CharField', [], {'max_length': '120'}),
42 'xml_file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'})
46 complete_apps = ['picture']