Commit 366b281c authored by Sofia Papagiannaki's avatar Sofia Papagiannaki

Fix membership policy presentation

in project application summary
parent 94088817
......@@ -307,12 +307,12 @@ SHIBBOLETH_REQUIRE_NAME_INFO = getattr(settings,
PROJECT_MEMBER_JOIN_POLICIES = getattr(settings,
'ASTAKOS_PROJECT_MEMBER_JOIN_POLICIES',
{1:'automatically accepted by the system',
2:'accepted by the owner of the project',
3:'members can not join the project'})
{'1':'automatically accepted by the system',
'2':'accepted by the owner of the project',
'3':'members can not join the project'})
PROJECT_MEMBER_LEAVE_POLICIES = getattr(settings,
'ASTAKOS_PROJECT_MEMBER_LEAVE_POLICIES',
{1:'automatically accepted by the system',
2:'accepted by the owner of the project',
3:'members can not leave the project'})
{'1':'automatically accepted by the system',
'2':'accepted by the owner of the project',
'3':'members can not leave the project'})
......@@ -86,7 +86,7 @@ def to_string(s):
@register.filter
def lookup(d, key):
try:
return d.get(key)
return d.get(str(key))
except:
return
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment