Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

💫 [IMPR] Remove overriding of SchemaRandonneeParser's filetype_name (refs #4022) #4375

Merged
merged 1 commit into from
Nov 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading