Fix picture detail styling.
[wolnelektury.git] / apps / picture / migrations / 0001_initial.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 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)),
22         ))
23         db.send_create_signal(u'picture', ['Picture'])
24
25
26     def backwards(self, orm):
27         # Deleting model 'Picture'
28         db.delete_table(u'picture_picture')
29
30
31     models = {
32         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'})
43         }
44     }
45
46     complete_apps = ['picture']