SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 45f75536 authored by George Katsikas's avatar George Katsikas :goat:
Browse files

rename invalid submission created key

fixes SENTRY-5051241416
parent 5b93f3db
No related branches found
No related tags found
No related merge requests found
......@@ -43,7 +43,7 @@ def get_fellow_qualification_expertise_level_display(submission, fellow):
try:
q = Qualification.objects.filter(
submission__in=submission.thread_full, fellow=fellow
).latest("submission__created")
).latest("submission__submission_date")
return q.get_expertise_level_display() + " (previous submission)"
except Qualification.DoesNotExist:
return ""
......@@ -73,7 +73,7 @@ def get_fellow_readiness_status_display(submission, fellow):
try:
q = Readiness.objects.filter(
submission__in=submission.thread_full, fellow=fellow
).latest("submission__created")
).latest("submission__submission_date")
return q.get_status_display() + " (previous submission)"
except Readiness.DoesNotExist:
return ""
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