Skip to content

Use django-storages' manifest files class instead of the overriden class #8781

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

Merged
merged 7 commits into from
Mar 7, 2022
4 changes: 2 additions & 2 deletions readthedocs/storage/s3_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from django.conf import settings
from django.contrib.staticfiles.storage import ManifestFilesMixin
from django.core.exceptions import ImproperlyConfigured
from storages.backends.s3boto3 import S3Boto3Storage
from storages.backends.s3boto3 import S3Boto3Storage, S3ManifestStaticStorage

from readthedocs.builds.storage import BuildMediaStorageMixin

Expand Down Expand Up @@ -52,7 +52,7 @@ def __init__(self, *args, **kwargs):
)


class S3StaticStorage(OverrideHostnameMixin, ManifestFilesMixin, S3Boto3Storage):
class S3StaticStorage(OverrideHostnameMixin, S3ManifestStaticStorage, S3Boto3Storage):

"""
An AWS S3 Storage backend for static media.
Expand Down