Skip to content

Commit a7e1c7c

Browse files
authored
Merge pull request #8781 from dogukanteber/use-django-storages
2 parents 1ed10e8 + d3ddf1a commit a7e1c7c

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

readthedocs/storage/s3_storage.py

+6-3
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,8 @@
1010
# Disable abstract method because we are not overriding all the methods
1111
# pylint: disable=abstract-method
1212
from django.conf import settings
13-
from django.contrib.staticfiles.storage import ManifestFilesMixin
1413
from django.core.exceptions import ImproperlyConfigured
15-
from storages.backends.s3boto3 import S3Boto3Storage
14+
from storages.backends.s3boto3 import S3Boto3Storage, S3ManifestStaticStorage
1615

1716
from readthedocs.builds.storage import BuildMediaStorageMixin
1817

@@ -52,7 +51,11 @@ def __init__(self, *args, **kwargs):
5251
)
5352

5453

55-
class S3StaticStorage(OverrideHostnameMixin, ManifestFilesMixin, S3Boto3Storage):
54+
class S3StaticStorage(
55+
OverrideHostnameMixin,
56+
S3ManifestStaticStorage,
57+
S3Boto3Storage
58+
): # pylint: disable=too-many-ancestors
5659

5760
"""
5861
An AWS S3 Storage backend for static media.

0 commit comments

Comments
 (0)