Django 1.7 migrations support

Issue #207 new
ErikW created an issue

I'm upgrading an application to Django 1.7 and just ran into an issue creating migrations for Models that use django-storages as a storage backend.

report_file = models.FileField(storage=S3BotoStorage(bucket="media.example.com"), upload_to=update_report_filename, max_length=100)

Looks like django-storages needs to implement a deconstruct() method for migration serialization to work in this case.

I created a subclass of S3BotoStorage with the deconstructible decorator mentioned in the docs and that seemed to fix it....

Comments (1)

  1. Log in to comment