Merge branch 'picture' into pretty
[wolnelektury.git] / apps / catalogue / migrations / 0009_auto.py
index 3153879..9c8e5c9 100644 (file)
@@ -11,6 +11,9 @@ class Migration(SchemaMigration):
         # Removing M2M table for field medias on 'Book'
         db.delete_table('catalogue_book_medias')
 
+        # Changing field 'BookMedia.book'
+        db.alter_column('catalogue_bookmedia', 'book_id', self.gf('django.db.models.fields.related.ForeignKey')(default=0, to=orm['catalogue.Book']))
+
 
     def backwards(self, orm):
         
@@ -22,6 +25,9 @@ class Migration(SchemaMigration):
         ))
         db.create_unique('catalogue_book_medias', ['book_id', 'bookmedia_id'])
 
+        # Changing field 'BookMedia.book'
+        db.alter_column('catalogue_bookmedia', 'book_id', self.gf('django.db.models.fields.related.ForeignKey')(null=True, to=orm['catalogue.Book']))
+
 
     models = {
         'auth.group': {