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

Fix membership policy presentation

in project application summary
parent 94088817
...@@ -307,12 +307,12 @@ SHIBBOLETH_REQUIRE_NAME_INFO = getattr(settings, ...@@ -307,12 +307,12 @@ SHIBBOLETH_REQUIRE_NAME_INFO = getattr(settings,
PROJECT_MEMBER_JOIN_POLICIES = getattr(settings, PROJECT_MEMBER_JOIN_POLICIES = getattr(settings,
'ASTAKOS_PROJECT_MEMBER_JOIN_POLICIES', 'ASTAKOS_PROJECT_MEMBER_JOIN_POLICIES',
{1:'automatically accepted by the system', {'1':'automatically accepted by the system',
2:'accepted by the owner of the project', '2':'accepted by the owner of the project',
3:'members can not join the project'}) '3':'members can not join the project'})
PROJECT_MEMBER_LEAVE_POLICIES = getattr(settings, PROJECT_MEMBER_LEAVE_POLICIES = getattr(settings,
'ASTAKOS_PROJECT_MEMBER_LEAVE_POLICIES', 'ASTAKOS_PROJECT_MEMBER_LEAVE_POLICIES',
{1:'automatically accepted by the system', {'1':'automatically accepted by the system',
2:'accepted by the owner of the project', '2':'accepted by the owner of the project',
3:'members can not leave the project'}) '3':'members can not leave the project'})
...@@ -86,7 +86,7 @@ def to_string(s): ...@@ -86,7 +86,7 @@ def to_string(s):
@register.filter @register.filter
def lookup(d, key): def lookup(d, key):
try: try:
return d.get(key) return d.get(str(key))
except: except:
return 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