Skip to content
Snippets Groups Projects
Commit 31e2e1f0 authored by Todd Dembrey's avatar Todd Dembrey
Browse files

Change the last_edit fate to use the live_revision which is correct

parent 99585315
No related branches found
No related tags found
No related merge requests found
......@@ -324,12 +324,6 @@ class ApplicationSubmission(
def active(self):
return self.status in active_statuses
@property
def last_edit(self):
# Best estimate of last edit
# TODO update when we have revisioning included
return self.activities.first()
def ensure_user_has_account(self):
if self.user and self.user.is_authenticated:
self.form_data['email'] = self.user.email
......
......@@ -58,7 +58,7 @@
<div>
<h6 class="heading heading--submission-meta">
<span>Submitted: <strong>{{ object.submit_time.date }} by {{ object.user.get_full_name }}</strong></span>
<span>Last edited: <strong>{{ object.last_edit.timestamp.date }} by {{ object.last_edit.user.get_full_name }}</strong></span>
<span>Last edited: <strong>{{ object.live_revision.timestamp.date }} by {{ object.live_revision.author }}</strong></span>
{% if request.user|has_edit_perm:object %}
<a class="link link--edit-submission is-active" href="{% url 'funds:submissions:edit' object.id %}">
Edit
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment