Skip to content

Commit 07113a7

Browse files
committed
🐛(back) fix import error preventing uploads in Marsha Document
In the preprod environment, uploading files to Marsha Document was failing due to incorrect import of the settings module from `marsha` instead of `django.conf`. It could be nice to have a linter rule for that but it would need adding a flake8 plugin.
1 parent 2d0ad8d commit 07113a7

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ Versioning](https://semver.org/spec/v2.0.0.html).
88

99
## [Unreleased]
1010

11+
### Fixed
12+
13+
- Fix settings import in Marsha Document
14+
1115
## [5.9.0] - 2025-06-23
1216

1317
### Added

src/backend/marsha/core/api/file.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
"""Declare API endpoints for documents with Django RestFramework viewsets."""
22

3+
from django.conf import settings
34
from django.utils import timezone
45

56
from rest_framework import mixins, viewsets
67
from rest_framework.decorators import action
78
from rest_framework.response import Response
89

9-
from marsha import settings
1010
from marsha.core import defaults, permissions, serializers, storage
1111
from marsha.core.api.base import APIViewMixin, ObjectPkMixin
1212
from marsha.core.forms import DocumentForm

0 commit comments

Comments
 (0)