We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7e77340 + e4b8d35 commit 37dbfebCopy full SHA for 37dbfeb
django_chunk_file_upload/app_settings.py
@@ -1,6 +1,6 @@
1
from __future__ import annotations
2
3
-from dataclasses import dataclass, fields
+from dataclasses import dataclass, field, fields
4
5
from django.conf import settings
6
@@ -51,7 +51,7 @@ class _LazySettings(_Settings):
51
status: StatusChoices = StatusChoices.PENDING
52
permission_classes: tuple[BasePermission] = (IsAuthenticated,)
53
optimize: bool = True
54
- image_optimizer: _ImageSettings = _ImageSettings()
+ image_optimizer: _ImageSettings = field(default_factory=_ImageSettings)
55
56
@classmethod
57
def from_kwargs(cls, **kwargs) -> "_LazySettings":
0 commit comments