-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix a crash in the course participants page for unenrolled users
The participant details page may be opened for users that are not enrolled in the course. The code `enrollment.status` used to crash when `enrollment` is `None`.
- Loading branch information
1 parent
9e402d2
commit 32d959f
Showing
3 changed files
with
25 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ msgid "" | |
msgstr "" | ||
"Project-Id-Version: PACKAGE VERSION\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2021-09-13 16:29+0300\n" | ||
"POT-Creation-Date: 2021-09-14 16:14+0300\n" | ||
"PO-Revision-Date: 2021-05-27 14:47+0300\n" | ||
"Last-Translator: Ella Anttila <[email protected]>\n" | ||
"Language-Team: English<>\n" | ||
|
@@ -2839,12 +2839,20 @@ msgstr "The review was saved successfully and the submitters were notified." | |
msgid "ERROR_FAILED_TO_LOAD_RESOURCE" | ||
msgstr "Failed to load the resource." | ||
|
||
#: exercise/staff_views.py | ||
msgid "USER_NOT_ENROLLED" | ||
msgstr "This person is not enrolled in the course." | ||
|
||
#: exercise/staff_views.py | ||
#, python-brace-format | ||
msgid "NO_LONGER_PARTICIPATING_IN_COURSE -- {status}" | ||
msgstr "" | ||
"This student is no longer participating in the course (status: {status})." | ||
|
||
#: exercise/staff_views.py | ||
msgid "USER_IS_COURSE_STAFF" | ||
msgstr "This person is a member of the course staff." | ||
|
||
#: exercise/staff_views.py | ||
#, python-brace-format | ||
msgid "ERROR_INVALID_POST_DATA -- {error}" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ msgid "" | |
msgstr "" | ||
"Project-Id-Version: \n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2021-09-13 16:29+0300\n" | ||
"POT-Creation-Date: 2021-09-14 16:14+0300\n" | ||
"PO-Revision-Date: 2019-08-14 12:16+0200\n" | ||
"Last-Translator: Ella Anttila <[email protected]>\n" | ||
"Language-Team: Finnish <>\n" | ||
|
@@ -2842,11 +2842,19 @@ msgstr "Palaute on tallennettu, ja opiskelijoille on lähetetty ilmoitus." | |
msgid "ERROR_FAILED_TO_LOAD_RESOURCE" | ||
msgstr "Lataus epäonnistui." | ||
|
||
#: exercise/staff_views.py | ||
msgid "USER_NOT_ENROLLED" | ||
msgstr "Tämä henkilö ei ole ilmoittautunut kurssille." | ||
|
||
#: exercise/staff_views.py | ||
#, python-brace-format | ||
msgid "NO_LONGER_PARTICIPATING_IN_COURSE -- {status}" | ||
msgstr "Tämä opiskelija ei enää osallistu kurssille (tila: {status})." | ||
|
||
#: exercise/staff_views.py | ||
msgid "USER_IS_COURSE_STAFF" | ||
msgstr "Tämä henkilö kuuluu kurssin henkilökuntaan." | ||
|
||
#: exercise/staff_views.py | ||
#, python-brace-format | ||
msgid "ERROR_INVALID_POST_DATA -- {error}" | ||
|