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")