This repository has been archived by the owner on Jul 25, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
frontend/templatetags: Add handling for missing status
If status was missing, this would previously cause a 500 error when loading the page, due to a RelatedObjectDoesNotExist error being raised when the project status function was called. Now, add handling for the case where status is None, so the project_status will return None instead of raising an error. Signed-off-by: Katie Worton <[email protected]>
- Loading branch information
1 parent
2167533
commit df3a171
Showing
2 changed files
with
31 additions
and
2 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