Skip to content

Commit e4b8d35

Browse files
author
Two Dev
committed
chore: fix app settings
1 parent 4ea7a7b commit e4b8d35

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

django_chunk_file_upload/app_settings.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from __future__ import annotations
22

3-
from dataclasses import dataclass, fields
3+
from dataclasses import dataclass, field, fields
44

55
from django.conf import settings
66

@@ -51,7 +51,7 @@ class _LazySettings(_Settings):
5151
status: StatusChoices = StatusChoices.PENDING
5252
permission_classes: tuple[BasePermission] = (IsAuthenticated,)
5353
optimize: bool = True
54-
image_optimizer: _ImageSettings = _ImageSettings()
54+
image_optimizer: _ImageSettings = field(default_factory=_ImageSettings)
5555

5656
@classmethod
5757
def from_kwargs(cls, **kwargs) -> "_LazySettings":

0 commit comments

Comments
 (0)