Skip to content

Commit

Permalink
Fixes #216
Browse files Browse the repository at this point in the history
  • Loading branch information
claeyswo authored Apr 25, 2024
1 parent 4a3780a commit bd52da0
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
5 changes: 5 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2.1.1 (25-04-2024)
------------------

- Land rendering fix voor laatste versie van pycountry (#216)

2.1.0 (24-04-2024)
------------------

Expand Down
3 changes: 2 additions & 1 deletion crabpy_pyramid/renderers/adressenregister.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def list_landen_adapter(obj, request):
"""
Adapter for rendering a list of landen to json.
"""
return {"code": obj.alpha_2, "naam": _(obj.name)}
return {"code": obj.alpha_2, "naam": obj.name, "vlag": obj.flag}


json_list_renderer.add_adapter(adressenregister.Gewest, list_gewesten_adapter)
Expand Down Expand Up @@ -226,6 +226,7 @@ def item_land_adapter(obj, request):
"alpha2": obj.alpha_2,
"alpha3": obj.alpha_3,
"naam": obj.name,
"vlag": obj.flag,
}


Expand Down
3 changes: 1 addition & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# Tested and approved with these versions
pyramid==2.0.0
crabpy==1.3.1
pycountry==18.12.8 ; python_version < '3.0'
crabpy==1.3.2
pycountry==23.12.11 ; python_version >= '3.4'
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

requires = [
'pyramid',
'crabpy>=0.15.0',
'crabpy>=1.3.2',
'pycountry>=23.12.11'
]

Expand All @@ -21,7 +21,7 @@
testing_extras = tests_requires + []

setup(name='crabpy_pyramid',
version='2.1.0',
version='2.1.1',
description='Bindings for the CRABpy webservices and the Pyramid framework.',
long_description=README + '\n\n' + CHANGES,
classifiers=[
Expand Down

0 comments on commit bd52da0

Please sign in to comment.