Book.flush_includes after ebook generation.
[wolnelektury.git] / apps / waiter / migrations / 0001_initial.py
index a75884b..a579d6e 100644 (file)
@@ -1,39 +1,27 @@
-# encoding: utf-8
-import datetime
-from south.db import db
-from south.v2 import SchemaMigration
-from django.db import models
+# -*- coding: utf-8 -*-
+from __future__ import unicode_literals
 
-class Migration(SchemaMigration):
+from django.db import models, migrations
+import picklefield.fields
 
-    def forwards(self, orm):
-        
-        # Adding model 'WaitedFile'
-        db.create_table('waiter_waitedfile', (
-            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
-            ('path', self.gf('django.db.models.fields.CharField')(unique=True, max_length=255, db_index=True)),
-            ('task_id', self.gf('django.db.models.fields.CharField')(db_index=True, max_length=128, null=True, blank=True)),
-            ('task', self.gf('picklefield.fields.PickledObjectField')(null=True)),
-            ('description', self.gf('django.db.models.fields.CharField')(max_length=255, null=True, blank=True)),
-        ))
-        db.send_create_signal('waiter', ['WaitedFile'])
 
+class Migration(migrations.Migration):
 
-    def backwards(self, orm):
-        
-        # Deleting model 'WaitedFile'
-        db.delete_table('waiter_waitedfile')
+    dependencies = [
+    ]
 
-
-    models = {
-        'waiter.waitedfile': {
-            'Meta': {'object_name': 'WaitedFile'},
-            'description': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
-            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
-            'path': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255', 'db_index': 'True'}),
-            'task': ('picklefield.fields.PickledObjectField', [], {'null': 'True'}),
-            'task_id': ('django.db.models.fields.CharField', [], {'db_index': 'True', 'max_length': '128', 'null': 'True', 'blank': 'True'})
-        }
-    }
-
-    complete_apps = ['waiter']
+    operations = [
+        migrations.CreateModel(
+            name='WaitedFile',
+            fields=[
+                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
+                ('path', models.CharField(unique=True, max_length=255, db_index=True)),
+                ('task_id', models.CharField(db_index=True, max_length=128, null=True, blank=True)),
+                ('task', picklefield.fields.PickledObjectField(null=True, editable=False)),
+                ('description', models.CharField(max_length=255, null=True, blank=True)),
+            ],
+            options={
+            },
+            bases=(models.Model,),
+        ),
+    ]