Skip to content

Commit

Permalink
💫 [IMPR] Remove overriding of SchemaRandonneeParser's filetype_name a…
Browse files Browse the repository at this point in the history
…ttribute (#4022)
  • Loading branch information
justinefricou committed Nov 18, 2024
1 parent eb9cd20 commit 2495356
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
4 changes: 4 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion geotrek/trekking/parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -1327,7 +1327,6 @@ class SchemaRandonneeParser(AttachmentParserMixin, Parser):
eid = 'eid'
separator = ','
srid = 4326
filetype_name = 'image'

fields = {
'eid': ('uuid', 'id_local'),
Expand Down
2 changes: 1 addition & 1 deletion geotrek/trekking/tests/test_parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 2495356

Please sign in to comment.