Skip to content

Commit

Permalink
Updated comment within FilePondUploadSystemStorage to better reflect …
Browse files Browse the repository at this point in the history
…the fix that it is solving.
  • Loading branch information
Rob Barber authored and jcohen02 committed Sep 4, 2019
1 parent f552f20 commit d0eb7dc
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions django_drf_filepond/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,15 @@

@deconstructible
class FilePondUploadSystemStorage(FileSystemStorage):
"""Custom storage class, otherwise Django assumes all files are
uploads headed to `MEDIA_ROOT`.
Subclassing necessary to avoid messing up with migrations (#13).
"""
Subclass FileSystemStorage to prevent creation of new migrations when
using a file store location passed to FileSystemStorage using the
location attribute. Instead the location is applied dynamically on
creation of the subclass avoiding detection of changes by the migration
system.
Addresses #13. Fix is based on fix for similar issue in
https://github.com/julen/pootle/commit/fd7800050172549e9f31544843b986691290ddc2
"""

def __init__(self, **kwargs):
Expand Down

0 comments on commit d0eb7dc

Please sign in to comment.