Skip to content

Commit

Permalink
fix code style check
Browse files Browse the repository at this point in the history
  • Loading branch information
velis74 committed Dec 19, 2024
1 parent b6354b2 commit 3ad119b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dynamicforms/mixins/file_field.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from typing import TYPE_CHECKING

from django.utils.translation import gettext_lazy as _

if TYPE_CHECKING:
Expand All @@ -23,7 +24,7 @@ def to_internal_value(self: "FileField", data):
from dynamicforms.preupload_files import get_cached_file

if isinstance(data, str): # dobimo guid
cached_file = get_cached_file(data, self.context['request'].user.id or -1, True)
cached_file = get_cached_file(data, self.context["request"].user.id or -1, True)
if cached_file:
# Naredimo django file iz cache podatkov
return ContentFile(cached_file.content, name=cached_file.name)
Expand Down

0 comments on commit 3ad119b

Please sign in to comment.