From 249535625887169d0f6a7bfe9fa228d536aae4f8 Mon Sep 17 00:00:00 2001 From: Justine Fricou Date: Mon, 18 Nov 2024 11:10:39 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=AB=20[IMPR]=20Remove=20overriding=20o?= =?UTF-8?q?f=20SchemaRandonneeParser's=20filetype=5Fname=20attribute=20(#4?= =?UTF-8?q?022)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/changelog.rst | 4 ++++ geotrek/trekking/parsers.py | 1 - geotrek/trekking/tests/test_parsers.py | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/changelog.rst b/docs/changelog.rst index b49866c94b..2b0fc2c2a5 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -5,6 +5,10 @@ CHANGELOG 2.110.0+dev (XXXX-XX-XX) ---------------------------- +**Improvements** + +- Remove overriding of SchemaRandonneeParser's filetype_name attribute (#4022) + **Bug fixes** - Fix missing Dockerfile path on make build scripts diff --git a/geotrek/trekking/parsers.py b/geotrek/trekking/parsers.py index f7ce974908..e3eed00c19 100644 --- a/geotrek/trekking/parsers.py +++ b/geotrek/trekking/parsers.py @@ -1327,7 +1327,6 @@ class SchemaRandonneeParser(AttachmentParserMixin, Parser): eid = 'eid' separator = ',' srid = 4326 - filetype_name = 'image' fields = { 'eid': ('uuid', 'id_local'), diff --git a/geotrek/trekking/tests/test_parsers.py b/geotrek/trekking/tests/test_parsers.py index 051de15e89..a214f588c1 100644 --- a/geotrek/trekking/tests/test_parsers.py +++ b/geotrek/trekking/tests/test_parsers.py @@ -1801,7 +1801,7 @@ class SchemaRandonneeParserWithLicenseCreation(SchemaRandonneeParser): class SchemaRandonneeParserTests(TestCase): @classmethod def setUpTestData(cls): - FileType.objects.create(type="image") + FileType.objects.create(type="Photographie") Practice.objects.create(name="Pédestre") RecordSource.objects.create(name="Producer 1") License.objects.create(label="License 1")