--- /dev/null
+from south.db import db
+from django.db.models import FileField
+
+class Migration:
+
+ def forwards(self):
+ db.add_column('catalogue_book', 'mp3_file', FileField())
+ db.add_column('catalogue_book', 'ogg_file', FileField())
+
+ def backwards(self):
+ db.delete_column('catalogue_book', 'mp3_file')
+ db.delete_column('catalogue_book', 'ogg_file')
+
pdf_file = models.FileField(_('PDF file'), upload_to=book_upload_path('pdf'), blank=True)
odt_file = models.FileField(_('ODT file'), upload_to=book_upload_path('odt'), blank=True)
txt_file = models.FileField(_('TXT file'), upload_to=book_upload_path('txt'), blank=True)
+ mp3_file = models.FileField(_('MP3 file'), upload_to=book_upload_path('mp3'), blank=True)
+ ogg_file = models.FileField(_('OGG file'), upload_to=book_upload_path('ogg'), blank=True)
parent = models.ForeignKey('self', blank=True, null=True, related_name='children')