Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Django 4+ version support #22

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion django_hashedfilenamestorage/storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@

from django.core.files import File
from django.core.files.storage import FileSystemStorage
from django.utils.encoding import force_text
from django.core.exceptions import ImproperlyConfigured

encoding = importlib.import_module('django.utils.encoding')
globals().setdefault('force_text', getattr(encoding, 'force_str', 'force_text'))


def HashedFilenameMetaStorage(storage_class):
class HashedFilenameStorage(storage_class):
Expand Down