Commit 20ebed84 authored by Olga Brani's avatar Olga Brani Committed by Giorgos Korfiatis

admin: Don't show modifications of initial project

Show project's last_pending_modification instead of last_pending_application
on project `pending modifications` tab so as not to show this tab for the
initial project pending application.
parent 9579fca9
......@@ -263,7 +263,7 @@ def details(request, query):
'main_type': 'project',
'action_dict': get_permitted_actions(cached_actions, request.user),
'associations_list': associations,
'last_app': project.last_pending_application(),
'last_app': project.last_pending_modification(),
return context
......@@ -522,7 +522,7 @@ def get_project_modifications(project):
Return a dictionary with a summary of a project's modifications as
requested by the user, concerning project details, policies and resources.
last_app = project.last_pending_application()
last_app = project.last_pending_modification()
if not last_app:
details = []
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment